Possible to wrap or merge separate namespaces?
<p>I seem to recall seeing notes somewhere on a way to combine multiple namespaces into one.</p>

<p>Now, looking for said notes I am not finding them -- even searching using search terms combing, grouping, merging and wrapping I'm not coming up with anything. Maybe I misunderstood what I saw before.  <em>I don't have a specific application for this, it's just a curiosity and it's a bit contrived.</em></p>

<p>But, starting with two name spaces...</p>

<pre><code>namespace a {int func() {return 1;}}
namespace b {int func() {return 2;}}
</code></pre>

<p>I was looking for syntax to either simply wrap them in another name -- after the fact --
(yes, I know I can rewrite it in a nested way) or merge them into one new space. But, I did find that I if I add to one of the namespaces that much works.</p>

<pre><code>namespace c {namespace a{ int func2() {return 3;}} }


int main(int argc, char **argv)
{
    int a = a::func();          // normal case
    int c = c::a::func2();      // wrapped and added to

    //int c = c::func2();       // doesn't work
    //int d = a::func2();       // doesn't work
}
</code></pre>

<p>The question are: </p>

<p>1) is there syntax that just combines the two spaces into one new one?</p>

<p>2) is there a syntax to wrap the spaces without adding more to the subspaces?</p>
