From: stephan b. <st...@ei...> - 2003-10-08 09:51:25
|
On Wednesday 08 October 2003 11:39, stephan beal wrote: > In theory (untested) the "bogus variables" created by the macro can > even have the same name and not worry about multiple definitions, > because of the properties of anonymous namespaces. i was wrong about that point, which invalidates: > - it is free of the conflict which comes up with like-named classes > in different namespaces: new_Bar() for classes foo::Bar and and > new_Bar() for bar::Bar. at the moment i'm experimenting with: namespace x ## ClassName { ... } but that has potentially the same collision problems as new_XXX(). -- ----- st...@ei... - http://www.einsurance.de "... NOT because we are America's poodle ..." Tony Blair, 30.9.2003 |