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.However, wouldn't writing MemberFun<void(A::*)(int), &A::setz>or even: MemberFun<void(A,int), &A::setz> instead of Function<void, int>::MemberFun<A, &A::setz> be a lot simpler?
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).
Lin Xu
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost