
23 Aug
2008
23 Aug
'08
1:57 a.m.
on Fri Aug 22 2008, "joel falcou" <joel.falcou-AT-u-psud.fr> wrote:
I managed to get this :
template<typename Body, typename T> struct switch_ { typedef typename find_if<Body,apply1<first<_1>,T> >::type iter_; typedef typename deref<iter_>::type pair_; typedef typename second<pair_>::type f_; typedef typename apply1< f_, T>::type type; };
working properly. Seems the current swich_ use lambda<> where it shouldn't. Is this a known bug or is there something bound to replace switch_ in the near future ? SHould I fill a trac ticket about this ?
yes -- Dave Abrahams BoostPro Computing http://www.boostpro.com