reuse a call to process instead of duplicting code
This commit is contained in:
parent
167e2ef382
commit
61796d7c42
|
|
@ -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 >
|
||||
|
|
|
|||
Loading…
Reference in New Issue