Enabling c++0x through code (without flags)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey!

Is there a way of enabling c++0x purely by editing my .cpp source (maybe adding a #pragma directive?).
In other words, I would like to be able to write code that uses stuff such as lambda functions while compiling it with "g++ code.cpp", and not with "g++ code.cpp -std=c++0x".

Thanks,
Goran



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux