[libcxx] r295403 - Mark a couple for basic_string member templates as inline. no ABI change this time.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 16 18:31:57 PST 2017
Author: ericwf
Date: Thu Feb 16 20:31:56 2017
New Revision: 295403
URL: http://llvm.org/viewvc/llvm-project?rev=295403&view=rev
Log:
Mark a couple for basic_string member templates as inline. no ABI change this time.
Modified:
libcxx/trunk/include/string
Modified: libcxx/trunk/include/string
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/string?rev=295403&r1=295402&r2=295403&view=diff
==============================================================================
--- libcxx/trunk/include/string (original)
+++ libcxx/trunk/include/string Thu Feb 16 20:31:56 2017
@@ -927,7 +927,7 @@ public:
basic_string& append(__self_view __sv) { return append(__sv.data(), __sv.size()); }
basic_string& append(const basic_string& __str, size_type __pos, size_type __n=npos);
template <class _Tp>
- typename enable_if
+ inline typename enable_if
<
__can_be_converted_to_string_view<_CharT, _Traits, _Tp>::value,
basic_string&
@@ -939,7 +939,7 @@ public:
template <class _ForwardIterator>
inline basic_string& __append_forward_unsafe(_ForwardIterator, _ForwardIterator);
template<class _InputIterator>
- typename enable_if
+ inline typename enable_if
<
__is_exactly_input_iterator<_InputIterator>::value
|| !__libcpp_string_gets_noexcept_iterator<_InputIterator>::value,
@@ -952,7 +952,7 @@ public:
return *this;
}
template<class _ForwardIterator>
- typename enable_if
+ inline typename enable_if
<
__is_forward_iterator<_ForwardIterator>::value
&& __libcpp_string_gets_noexcept_iterator<_ForwardIterator>::value,
More information about the cfe-commits
mailing list