Hi mclow.lists,
To allow the compilation with gcc, we can't use the
__has_feature(noexcept) to detect the existence of noexcept
keyword. We should use __cplusplus >= 201103L instead.
http://reviews.llvm.org/D3612
Files:
test/test_vector1.cpp
Index: test/test_vector1.cpp
===================================================================
--- test/test_vector1.cpp
+++ test/test_vector1.cpp
@@ -49,7 +49,7 @@
void throw_construct ( void *p ) { if ( gConstructorCounter ==
gConstructorThrowTarget ) throw 1; ++gConstructorCounter; }
void throw_destruct ( void *p ) { if ( ++gDestructorCounter ==
gDestructorThrowTarget ) throw 2; }
-#if __has_feature(cxx_noexcept)
+#if __cplusplus >= 201103L
# define CAN_THROW noexcept(false)
#else
# define CAN_THROW
Index: test/test_vector1.cpp
===================================================================
--- test/test_vector1.cpp
+++ test/test_vector1.cpp
@@ -49,7 +49,7 @@
void throw_construct ( void *p ) { if ( gConstructorCounter == gConstructorThrowTarget ) throw 1; ++gConstructorCounter; }
void throw_destruct ( void *p ) { if ( ++gDestructorCounter == gDestructorThrowTarget ) throw 2; }
-#if __has_feature(cxx_noexcept)
+#if __cplusplus >= 201103L
# define CAN_THROW noexcept(false)
#else
# define CAN_THROW
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits