-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Joel Falcou Sent: 08 April 2009 16:24 To: boost-users@lists.boost.org Subject: Re: [Boost-users] different member function signatures based on class template arguments
Hicham Mouline a écrit :
I tried something along these lines:
but it failed to compile...
Shouldn't the enable_if metafct remove the invalid functions from the overload set?
Regards,
It probably failed because you use typename inside the enable_if condition. Make a meta-function that do your test and invoke it inside enable_if
Thanks. I moved the 1st typename out of enable_if in a separate metatfct (kind of binder1st for mpl) It still fails the compile error is here: http://codepad.org/gR04D5T5 regards,