
14 Feb
2004
14 Feb
'04
8:53 p.m.
Gabriel Dos Reis <gdr@integrable-solutions.net> 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