
Sergey Shandar <sergey.shandar <at> gmail.com> writes:
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.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Source code under Apache License 2.0: http://citylizardpp.codeplex.com/ Libraries: - meta, meta-programming library with template members (if_, list, const_). if_<...>::else_if<...>::else<>::type list::push_back<...>::push_back<...>::type int_<N>::plus_c<M>::equal_c<K>::equal<true_>::value - cast (casting library with result type inference). char const X = 5; char &R = cast::const_::ref(X);