Revert "Implement LWG 2221 - No formatted output operator for nullptr."
This reverts r342566 as it causes on bots linker errors like > Undefined symbols for architecture i386: > "std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(std::nullptr_t)", referenced from: git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@342599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -56,7 +56,6 @@ public:
|
||||
basic_ostream& operator<<(double f);
|
||||
basic_ostream& operator<<(long double f);
|
||||
basic_ostream& operator<<(const void* p);
|
||||
basic_ostream<charT, traits>& operator<<(nullptr_t); // C++17
|
||||
basic_ostream& operator<<(basic_streambuf<char_type,traits>* sb);
|
||||
|
||||
// 27.7.2.7 Unformatted output:
|
||||
@@ -217,7 +216,6 @@ public:
|
||||
basic_ostream& operator<<(double __f);
|
||||
basic_ostream& operator<<(long double __f);
|
||||
basic_ostream& operator<<(const void* __p);
|
||||
basic_ostream& operator<<(nullptr_t);
|
||||
basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
|
||||
|
||||
// 27.7.2.7 Unformatted output:
|
||||
@@ -711,14 +709,6 @@ basic_ostream<_CharT, _Traits>::operator<<(const void* __n)
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class _CharT, class _Traits>
|
||||
basic_ostream<_CharT, _Traits>&
|
||||
basic_ostream<_CharT, _Traits>::operator<<(nullptr_t)
|
||||
{
|
||||
return *this << "(nullptr)";
|
||||
}
|
||||
|
||||
|
||||
template<class _CharT, class _Traits>
|
||||
basic_ostream<_CharT, _Traits>&
|
||||
__put_character_sequence(basic_ostream<_CharT, _Traits>& __os,
|
||||
@@ -752,6 +742,7 @@ __put_character_sequence(basic_ostream<_CharT, _Traits>& __os,
|
||||
return __os;
|
||||
}
|
||||
|
||||
|
||||
template<class _CharT, class _Traits>
|
||||
basic_ostream<_CharT, _Traits>&
|
||||
operator<<(basic_ostream<_CharT, _Traits>& __os, _CharT __c)
|
||||
|
||||
Reference in New Issue
Block a user