Skip to content

Commit 2d8f23f

Browse files
committed
[libc++] Explicitly mark basic_string<...>::npos with default
visibility. This ensures that the version compiled into the library isn't accidentally hidden.
1 parent 24d2a01 commit 2d8f23f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libcxx/include/string

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4232,8 +4232,9 @@ _LIBCPP_FUNC_VIS wstring to_wstring(double __val);
42324232
_LIBCPP_FUNC_VIS wstring to_wstring(long double __val);
42334233

42344234
template<class _CharT, class _Traits, class _Allocator>
4235-
const typename basic_string<_CharT, _Traits, _Allocator>::size_type
4236-
basic_string<_CharT, _Traits, _Allocator>::npos;
4235+
_LIBCPP_FUNC_VIS
4236+
const typename basic_string<_CharT, _Traits, _Allocator>::size_type
4237+
basic_string<_CharT, _Traits, _Allocator>::npos;
42374238

42384239
template <class _CharT, class _Allocator>
42394240
struct _LIBCPP_TEMPLATE_VIS

0 commit comments

Comments
 (0)