aboutsummaryrefslogtreecommitdiffstats
path: root/include/string
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-24 19:18:17 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-24 19:18:17 +0000
commit90c3c6c2a0a0afd28cbb5e117b278bdcdebfd85f (patch)
tree57f29724ab5627bc582b314f59a0a405ba6c502b /include/string
parent375122a03b870ed00f2c4c452d8c939e2039ffec (diff)
downloadsrc-vendor/libc++/libc++-release_40-r292951.tar.gz
src-vendor/libc++/libc++-release_40-r292951.zip
Vendor import of libc++ release_40 branch r292951:vendor/libc++/libc++-release_40-r292951
Diffstat (limited to 'include/string')
-rw-r--r--include/string3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/string b/include/string
index 7d7994eaca1b..ba311efa5a31 100644
--- a/include/string
+++ b/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