Skip to content

Commit 5fef3c6

Browse files
Overriding a non-function attribute with a method should replace the overridden attribute in RESTProcess.
1 parent 7ed1593 commit 5fef3c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RESTProcess_base.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ namespace classdesc
393393
functs->overloadedFunctions.emplace_back(rp);
394394
i->second=functs;
395395
}
396-
else {assert(false);/* should not be here */}
396+
else // overloading something that is not a function
397+
i->second.reset(rp);
397398
}
398399

399400
inline RPPtr process(const std::string& query, const REST_PROCESS_BUFFER& jin);

0 commit comments

Comments
 (0)