Define constexpr as /*constexpr*/ when unavailable (also noexcept)

This commit is contained in:
Martin Moene
2016-08-24 19:53:53 +02:00
parent 5112ba02f6
commit 3aea9f7201
6 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -30,7 +30,7 @@
// No MSVC does constexpr fully yet
#pragma push_macro("constexpr")
#define constexpr /* nothing */
#define constexpr /*constexpr*/
#pragma warning(push)
@@ -50,7 +50,7 @@
// noexcept is not understood
#ifndef GSL_THROW_ON_CONTRACT_VIOLATION
#pragma push_macro("noexcept")
#define noexcept /* nothing */
#define noexcept /*noexcept*/
#endif
#endif // _MSC_VER <= 1800
@@ -67,7 +67,7 @@
#pragma push_macro("noexcept")
#endif
#define noexcept /* nothing */
#define noexcept /*noexcept*/
#endif // GSL_THROW_ON_CONTRACT_VIOLATION