Re: [proto] [proto-11] expression extension
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: templatetypename Tag, typename Args struct MyExpr; struct MyDomain : proto::domainMyDomain { struct make_expr : proto::make_custom_exprMyExpr, MyDomain {}; }; templatetypename 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
Re: [proto] [proto-11] expression extension
On 6/5/2012 11:10 PM, Mathias Gaunard wrote: 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: templatetypename Tag, typename Args struct MyExpr; struct MyDomain : proto::domainMyDomain { struct make_expr : proto::make_custom_exprMyExpr, MyDomain {}; }; templatetypename Tag, typename Args struct MyExpr Wouldn't it be more interesting for make_custom_expr to take a meta-function class? The template template parameter is distasteful, I agree, but I can shave template instantiations this way. There's no need to instantiate a nested apply template for every new expression type created. Especially now with template aliases, it's quite painless to adapt a template to have the interface that make_custom_expr expects. That was my reasoning, at least. -- Eric Niebler BoostPro Computing http://www.boostpro.com ___ proto mailing list proto@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/proto
Re: [proto] [proto-11] expression extension
On 06/06/2012 08:24, Eric Niebler wrote: The template template parameter is distasteful, I agree, but I can shave template instantiations this way. There's no need to instantiate a nested apply template for every new expression type created. Especially now with template aliases, it's quite painless to adapt a template to have the interface that make_custom_expr expects. That was my reasoning, at least. I hadn't considered template aliases, I guess with those it is just fine. ___ proto mailing list proto@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/proto
[proto] Who's using proto ?
Hi, i'm in the process of writing a journal paper about proto and I wanted to give a realistic snapshot of who is using proto and for what. I know some already (the whole MSM Spirit team etc ) but i am sure there is other people lurking around here. So, if you want to contribute, I wish any of you, proto user, to tell me who you are, what you're using proto for and if you have a reference (for academic) or a website (for other). It's a win-win as you may get exposure and you help us make this paper a nice PR for proto. Of course, you can do this on the list or in private if you prefer. Thanks in advance. ___ proto mailing list proto@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/proto