Skip to content

Commit

Permalink
[libc++] Explicitly mark basic_string<...>::npos with default
Browse files Browse the repository at this point in the history
visibility.

This ensures that the version compiled into the library isn't
accidentally hidden.
  • Loading branch information
EricWF committed Jan 15, 2020
1 parent 24d2a01 commit 2d8f23f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libcxx/include/string
Expand Up @@ -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
Expand Down

0 comments on commit 2d8f23f

Please sign in to comment.