Boost logo

Boost Users :

Subject: Re: [Boost-users] different member function signatures based on class template arguments
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2009-04-08 11:23:32


Hicham Mouline a écrit :
> I tried something along these lines:
>
> http://codepad.org/ieS3W2aO
>
> 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

-- 
___________________________________________
Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net