Gavin Doughtie on 29 Jul 2003 23:52:58 -0000 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[ALACPP] boost::function shortcoming |
So, I was wondering if there was a way to compare two boost::function objects to see if they were bound to the same function. Greg, quite sensibly, wanted a unit test to ensure that the default bindings were correct, and there was no way that we could find to dig the original function pointer out and check it. Fortunately, in this case we were able to use a raw function pointer, but it begs the question -- I could see not comparing two boost::bound function objects as the member instances might be different, but even then I'd like to do some kind of type checking. Gavin _______________________________________________ alacpp mailing list alacpp@xxxxxxxxxxx http://lists.ellipsis.cx/mailman/listinfo/alacpp