Home » U++ Library support » U++ Core » Possible bug/clarification only callback2 was changed for const Object*
Re: Possible bug/clarification only callback2 was changed for const Object* [message #20597 is a reply to message #20586] |
Wed, 25 March 2009 08:39 |
|
mirek
Messages: 13980 Registered: November 2005
|
Ultimate Member |
|
|
hans wrote on Tue, 24 March 2009 11:14 | Hi,
in current (1007) svn repository, in the function
template <class Object, class R, class O, class A, class B, class T1, class T2>
Callback callback2(const Object *object, R (O::*method)(A, B) const, T1 arg1, T2 arg2) {
return Callback(new CallbackMethodActionArg2<const Object, R (O::*)(A, B) const, T1, T2>
}
the template class was changed from
CallbackMethodActionArg2<Object, ....>
to
CallbackMethodActionArg2<const Object, ....>
But, the other functions callback3, callback4 are not changed.
I think this should made consistent IMHO.
|
In "my copy" of Callback.h, there seem to always be both variants (non-const and const) for callback2, 3, 4, which IMO makes sense...
Mirek
|
|
|
Goto Forum:
Current Time: Sat Jun 01 07:20:06 CEST 2024
Total time taken to generate the page: 0.01447 seconds
|