summaryrefslogtreecommitdiff
path: root/include/string
diff options
context:
space:
mode:
Diffstat (limited to 'include/string')
-rw-r--r--include/string1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/string b/include/string
index 136a5fb8949d3..7d7994eaca1b9 100644
--- a/include/string
+++ b/include/string
@@ -818,6 +818,7 @@ public:
operator __self_view() const _NOEXCEPT { return __self_view(data(), size()); }
basic_string& operator=(const basic_string& __str);
+ template <class = void>
_LIBCPP_INLINE_VISIBILITY
basic_string& operator=(__self_view __sv) {return assign(__sv);}
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES