Fix failure on C++03 bots
authorMarshall Clow <mclow.lists@gmail.com>
Mon, 27 Nov 2017 16:17:19 +0000 (16:17 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Mon, 27 Nov 2017 16:17:19 +0000 (16:17 +0000)
llvm-svn: 319042

libcxx/include/ostream
libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.fail.cpp
libcxx/test/std/utilities/memory/unique.ptr/unique.ptr.special/io.pass.cpp

index 92f7f4d..f3250a7 100644 (file)
@@ -1071,6 +1071,7 @@ operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p)
     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>& __os, unique_ptr<_Yp, _Dp> const& __p
 {
     return __os << __p.get();
 }
+#endif
 
 template <class _CharT, class _Traits, size_t _Size>
 basic_ostream<_CharT, _Traits>&
index 1a4c0bd..48c90f7 100644 (file)
@@ -7,6 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+// UNSUPPORTED: c++98, c++03
+//  Because we don't have a functioning decltype in C++03
+
 // <memory>
 
 // unique_ptr
index 81a1c36..1166a01 100644 (file)
@@ -7,6 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+// UNSUPPORTED: c++98, c++03
+//  Because we don't have a functioning decltype in C++03
+
 // <memory>
 
 // unique_ptr