Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-02-14 15:53:27


Gabriel Dos Reis <gdr_at_[hidden]> writes:

> If you follow the first principle that scopes nest, then the "C" in
> the altenrative #1 gets hidden by the member S<>::C in the local scope of
> S<>::f()-body (current situation). If you want something different,
> you'll end up with a notion similar to "parallel scopes" or
> "injection of enclosing scope into the enclosed scopes" (which is
> contrary to "scopes nest").

You could just use the rule that each template parameter list forms
a scope that encloses whatever it adorns. Then the reading that's
obvious to me follows "from first principles".

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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