[libcxx] r347400 - [libcxx] Make sure operator+ is declared with the right visibility attribute

Louis Dionne ldionne at apple.com
Wed Nov 21 09:31:55 PST 2018


Author: ldionne
Date: Wed Nov 21 09:31:55 2018
New Revision: 347400

URL: http://llvm.org/viewvc/llvm-project?rev=347400&view=rev
Log:
[libcxx] Make sure operator+ is declared with the right visibility attribute

Otherwise, Clang complains about internal_linkage not being applied to the
first declaration of the operator (and rightfully so).

Modified:
    libcxx/trunk/include/string

Modified: libcxx/trunk/include/string
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/string?rev=347400&r1=347399&r2=347400&view=diff
==============================================================================
--- libcxx/trunk/include/string (original)
+++ libcxx/trunk/include/string Wed Nov 21 09:31:55 2018
@@ -580,6 +580,7 @@ basic_string<_CharT, _Traits, _Allocator
 operator+(_CharT __x, const basic_string<_CharT,_Traits,_Allocator>& __y);
 
 template<class _CharT, class _Traits, class _Allocator>
+inline _LIBCPP_INLINE_VISIBILITY
 basic_string<_CharT, _Traits, _Allocator>
 operator+(const basic_string<_CharT, _Traits, _Allocator>& __x, const _CharT* __y);
 




More information about the libcxx-commits mailing list