[libcxx] r274274 - Fix C++03 build.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 30 13:46:58 PDT 2016


Author: ericwf
Date: Thu Jun 30 15:46:58 2016
New Revision: 274274

URL: http://llvm.org/viewvc/llvm-project?rev=274274&view=rev
Log:
Fix C++03 build.

Modified:
    libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/compare_copy_constructible.fail.cpp
    libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/hash_copy_constructible.fail.cpp
    libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/compare_copy_constructible.fail.cpp
    libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/hash_copy_constructible.fail.cpp
    libcxx/trunk/test/std/thread/futures/futures.overview/future_errc.pass.cpp

Modified: libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/compare_copy_constructible.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/compare_copy_constructible.fail.cpp?rev=274274&r1=274273&r2=274274&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/compare_copy_constructible.fail.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/compare_copy_constructible.fail.cpp Thu Jun 30 15:46:58 2016
@@ -7,6 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+// UNSUPPORTED: c++98, c++03
+// The test requires access control SFINAE.
+
 // <unordered_map>
 
 // Check that std::unordered_map fails to instantiate if the comparison predicate is 

Modified: libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/hash_copy_constructible.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/hash_copy_constructible.fail.cpp?rev=274274&r1=274273&r2=274274&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/hash_copy_constructible.fail.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.map/unord.map.cnstr/hash_copy_constructible.fail.cpp Thu Jun 30 15:46:58 2016
@@ -7,6 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+// UNSUPPORTED: c++98, c++03
+// The test requires access control SFINAE.
+
 // <unordered_map>
 
 // Check that std::unordered_map fails to instantiate if the hash function is 
@@ -21,7 +24,7 @@ struct Hash {
 	Hash () {}
 private:
 	Hash (const Hash &); // declared but not defined
-	};
+};
 
 
 int main() {

Modified: libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/compare_copy_constructible.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/compare_copy_constructible.fail.cpp?rev=274274&r1=274273&r2=274274&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/compare_copy_constructible.fail.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/compare_copy_constructible.fail.cpp Thu Jun 30 15:46:58 2016
@@ -7,6 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+// UNSUPPORTED: c++98, c++03
+// The test requires access control SFINAE.
+
 // <unordered_map>
 
 // Check that std::unordered_multimap fails to instantiate if the comparison predicate is 

Modified: libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/hash_copy_constructible.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/hash_copy_constructible.fail.cpp?rev=274274&r1=274273&r2=274274&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/hash_copy_constructible.fail.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/hash_copy_constructible.fail.cpp Thu Jun 30 15:46:58 2016
@@ -7,6 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+// UNSUPPORTED: c++98, c++03
+// The test requires access control SFINAE.
+
 // <unordered_map>
 
 // Check that std::unordered_multimap fails to instantiate if the hash function is 

Modified: libcxx/trunk/test/std/thread/futures/futures.overview/future_errc.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/futures/futures.overview/future_errc.pass.cpp?rev=274274&r1=274273&r2=274274&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/futures/futures.overview/future_errc.pass.cpp (original)
+++ libcxx/trunk/test/std/thread/futures/futures.overview/future_errc.pass.cpp Thu Jun 30 15:46:58 2016
@@ -9,6 +9,9 @@
 //
 // UNSUPPORTED: libcpp-has-no-threads
 
+// UNSUPPORTED: c++98, c++03
+// Libc++'s enum class emulation does not allow static_cast<Enum>(0) to work.
+
 // <future>
 
 // enum class future_errc




More information about the cfe-commits mailing list