Boost logo

Boost :

Subject: Re: [boost] [MPL] Maintenance, patch applciation etc
From: Sergey Shandar (sergey.shandar_at_[hidden])
Date: 2011-03-09 19:51:08


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);


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk