This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51897] command line option to create a namespace alias


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51897

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-22 22:22:22 UTC ---
>Yes, this can also be done with macros, but it's a cleaner preprocessor-free
choice.

Not really.  The preprocessor is there for a reason and it is simple as:
namespace NN = NNVERSION;

-DNNVERSION=NN1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]