Subject: Re: phoenix lambda-lambda for_each example
From: Joel de Guzman <[email-masked]>
To: Noah Stein <[email-masked]>
Cc: Aleksey Gurtovoy <[email-masked]>, David Abrahams <[email-masked]>, Jaakko Jarvi <[email-masked]>
Date: Wed, 03 Mar 2004 18:05:15 +0800

Noah Stein wrote:

>>From: Aleksey Gurtovoy [mailto:[email-masked]]
> 
> 
>>FWIW, I'd expect/implement it to refer to the immediately preceding
>>scope, and support the nested usage like 'outer(outer(arg#))' for the
>>case of multiply-nested scopes.
> 
> 
> That makes sense.  It sure is ugly, though.

You can have named outer placeholders if you wish:

    outer_argument<1, 1> x; // x == outer(arg1)
    outer_argument<2, 1> xx; // xx == outer(outer(arg1))

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net