[libcxx] r319042 - Fix failure on C++03 bots
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 27 08:17:19 PST 2017
Author: marshall
Date: Mon Nov 27 08:17:19 2017
New Revision: 319042
URL: http://llvm.org/viewvc/llvm-project?rev=319042&view=rev
Log:
Fix failure on C++03 bots
Modified:
libcxx/trunk/include/ostream
libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.fail.cpp
libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.pass.cpp
Modified: libcxx/trunk/include/ostream
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/ostream?rev=319042&r1=319041&r2=319042&view=diff
==============================================================================
--- libcxx/trunk/include/ostream (original)
+++ libcxx/trunk/include/ostream Mon Nov 27 08:17:19 2017
@@ -1071,6 +1071,7 @@ operator<<(basic_ostream<_CharT, _Traits
return __os << __p.get();
}
+#ifndef _LIBCPP_HAS_NO_DECLTYPE
template<class _CharT, class _Traits, class _Yp, class _Dp>
inline _LIBCPP_INLINE_VISIBILITY
typename enable_if
@@ -1082,6 +1083,7 @@ operator<<(basic_ostream<_CharT, _Traits
{
return __os << __p.get();
}
+#endif
template <class _CharT, class _Traits, size_t _Size>
basic_ostream<_CharT, _Traits>&
Modified: libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.fail.cpp?rev=319042&r1=319041&r2=319042&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.fail.cpp Mon Nov 27 08:17:19 2017
@@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03
+// Because we don't have a functioning decltype in C++03
+
// <memory>
// unique_ptr
Modified: libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.pass.cpp?rev=319042&r1=319041&r2=319042&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.pass.cpp Mon Nov 27 08:17:19 2017
@@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03
+// Because we don't have a functioning decltype in C++03
+
// <memory>
// unique_ptr
More information about the cfe-commits
mailing list