reuse a call to process instead of duplicting code
This commit is contained in:
@@ -26,7 +26,7 @@ void process(Operator &op, Type &object) {
|
||||
|
||||
template<class Operator, class Type>
|
||||
void process(Operator &op, const Type &object) {
|
||||
const_cast<Type &>(object).process(op);
|
||||
process(op, const_cast<Type &>(object));
|
||||
}
|
||||
|
||||
template< class Operator, class Type >
|
||||
|
||||
Reference in New Issue
Block a user