|
Proto : |
Subject: Re: [proto] [proto-11] expression extension
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2012-06-06 02:10:36
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 list run by eric at boostpro.com