On 03/06/2012 09:41, Eric Niebler wrote:

Hey all, this is just an FYI. I've been hard at work at a ground-up
redesign of proto for C++11. I've gotten far enough along that I know
what expression extension will look like, so I thought I'd share. This
should interest those who want finer control over how expressions in
their domain are constructed. Without further ado:

     template<typename Tag, typename Args>
     struct MyExpr;

     struct MyDomain
       : proto::domain<MyDomain>
     {
         struct make_expr
           : proto::make_custom_expr<MyExpr, MyDomain>
         {};
     };

     template<typename Tag, typename Args>
     struct MyExpr

Wouldn't it be more interesting for make_custom_expr to take a meta-function class?
_______________________________________________
proto mailing list
proto@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/proto

Reply via email to