From: Lin Xu (risingdragon3_at_[hidden])
Date: 2003-02-12 01:08:14
>However, wouldn't writing
> MemberFun<void(A::*)(int), &A::setz>
> MemberFun<void(A,int), &A::setz>
> Function<void, int>::MemberFun<A, &A::setz>
>be a lot simpler?
Yeah, I guess it would. The syntax I had before was limited by my lack of
knowledge about how to extract the arguments and return type from a
classtype. But I can use function_traits<> right? But that requires partial
template specialization. Is there a way to get the types without PTS? How
does boost::function do it? Maybe I can mirror the syntax of
boost::Function. But boost::function doesn't have the function pointer as an
actual template parameter.
I dont' know how to make that syntax work. I did originally want syntax like
that, but I didn't know how to write it without PTS (or a least support
non-PTS compilers nicely).
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk