[libcxx-commits] [libcxx] 2d8f23f - [libc++] Explicitly mark basic_string<...>::npos with default
Eric Fiselier via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 15 14:03:27 PST 2020
Author: Eric Fiselier
Date: 2020-01-15T17:02:17-05:00
New Revision: 2d8f23f571635c1fb983b40c4c2548716a5b65b6
URL: https://github.com/llvm/llvm-project/commit/2d8f23f571635c1fb983b40c4c2548716a5b65b6
DIFF: https://github.com/llvm/llvm-project/commit/2d8f23f571635c1fb983b40c4c2548716a5b65b6.diff
LOG: [libc++] Explicitly mark basic_string<...>::npos with default
visibility.
This ensures that the version compiled into the library isn't
accidentally hidden.
Added:
Modified:
libcxx/include/string
Removed:
################################################################################
diff --git a/libcxx/include/string b/libcxx/include/string
index c13cefc64e39..0f84d87735b9 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -4232,8 +4232,9 @@ _LIBCPP_FUNC_VIS wstring to_wstring(double __val);
_LIBCPP_FUNC_VIS wstring to_wstring(long double __val);
template<class _CharT, class _Traits, class _Allocator>
- const typename basic_string<_CharT, _Traits, _Allocator>::size_type
- basic_string<_CharT, _Traits, _Allocator>::npos;
+_LIBCPP_FUNC_VIS
+const typename basic_string<_CharT, _Traits, _Allocator>::size_type
+ basic_string<_CharT, _Traits, _Allocator>::npos;
template <class _CharT, class _Allocator>
struct _LIBCPP_TEMPLATE_VIS
More information about the libcxx-commits
mailing list