[libc++] Fix Windows DLL build for string.
We need to mark string::npos with _LIBCPP_FUNC_VIS on the first
in-class declaration, otherwise it might get ignored
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 59919c4d6b6370da7133bbca0d31844e21646bb1
diff --git a/include/string b/include/string
index 2556301..313ef9f 100644
--- a/include/string
+++ b/include/string
@@ -785,6 +785,7 @@
__compressed_pair<__rep, allocator_type> __r_;
public:
+ _LIBCPP_FUNC_VIS
static const size_type npos = -1;
_LIBCPP_INLINE_VISIBILITY basic_string()