
Maxim Yanchenko <maximyanchenko <at> yandex.ru> writes:
Btw, that page doesn't have a Meta::if_ by Sergey Shandar, a device that can simplify all if_/enable_if/lazy_enable_if enchilada. I remember there was a discussion in the lists and the feedback was very positive but I can't find it now.
OK, found it, it's actually a 4-year-old trac ticket and the discussion is inside, with the final resolution "Let's get it in": https://svn.boost.org/trac/boost/ticket/799
Thanks, Maxim
Hi all, The latest version is here: http://citylizard.codeplex.com/SourceControl/list/changesets. File cpp/citylizard/meta/if.hpp. Also, I used the same idea for a compile-time list (similar to boost::mpl::vector). Syntax: list::push_back<int>::push_back<char>::push_back<void>::type Best regards, Sergey Shandar.