Re: GCC support for C++ noexcept

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

 



Noexcept is a C++11 feature, so it has to be enabled by -std=c++11 or
-std=gnu++11 (or, on some older gcc verions, -std=c++0x/gnu++0x)

$ cat noex.cc 
void fn() noexcept(false);
$ g++ -c noex.cc
noex.cc:1:11: error: expected initializer before ‘noexcept’
 void fn() noexcept(false);
            ^
$ g++ -std=c++11 -c noex.cc
$ 

Jeff



[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