|
Boost : |
From: Jesse Jones (jejones_at_[hidden])
Date: 2000-11-22 17:42:32
>On Tue, 21 Nov 2000 21:19:25 -0800
>Jesse Jones <jejones_at_[hidden]> wrote:
>
>> I've uploaded a new version of my callback classes (see the Callbacks2
>> directory in the vault). Like Doug Gregor's this version has the nice
>> property of not requiring clients to encode the number of arguments in the
>> callback class name.
>
>Here are a few questions/comments (beyond what has already been discussed):
>
>1) Why are all of the callback operator() overloads const? I can see
>reason in offering both a const_callback and a callback class, but I don't
>see how these operators are always const.
I thought someone would ask about that. :-) I'm not sure why they're const.
It may be left over from long ago when I was using Hickey's classes. I'll
think about the const issues some more.
>2) The usage of template metaprogramming (mostly SWITCH/CASE) makes me
>wonder about portability... Has anyone tried to compile this on MSVC++?
It should compile. I'm using the lame non-partial specialization form of
SWITCH.
-- Jesse
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk