For the following code
struct X { int x; X() noexcept try : x(0) { } catch(...) { } };
Visual studio 14 CTP issues a warning
warning C4297: "X :: X": it is assumed that the function does not throw an exception, but does
Note: __declspec (nothrow), throw (), noexcept (true) or noexcept was specified in the function
Is this a misuse of noexcept ? Or is this a bug in the Microsoft compiler?
c ++ c ++ 11 noexcept visual-c ++ c ++ 14
a.lasram
source share