summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-23 21:24:58 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-23 21:24:58 +0000
commit5363be7a9cd4a6d86973eabb593456fd25cb635b (patch)
tree49303f8949b9fa967ec29f2beb8787aec8b9081a /libcxx
parentc3a035d86f91a380bd001eb6ad4cf4faf6bd5e84 (diff)
downloadbcm5719-llvm-5363be7a9cd4a6d86973eabb593456fd25cb635b.tar.gz
bcm5719-llvm-5363be7a9cd4a6d86973eabb593456fd25cb635b.zip
Fix GCC C++03 build by hiding default template argument in C++03
llvm-svn: 292830
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/include/string3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/string b/libcxx/include/string
index 7d7994eaca1..ba311efa5a3 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -818,7 +818,10 @@ public:
operator __self_view() const _NOEXCEPT { return __self_view(data(), size()); }
basic_string& operator=(const basic_string& __str);
+
+#ifndef _LIBCPP_CXX03_LANG
template <class = void>
+#endif
_LIBCPP_INLINE_VISIBILITY
basic_string& operator=(__self_view __sv) {return assign(__sv);}
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
OpenPOWER on IntegriCloud