[libc++] Fix Windows DLL build for string.
authorEric Fiselier <eric@efcs.ca>
Thu, 16 Jan 2020 20:00:34 +0000 (15:00 -0500)
committerEric Fiselier <eric@efcs.ca>
Thu, 16 Jan 2020 20:01:12 +0000 (15:01 -0500)
We need to mark string::npos with _LIBCPP_FUNC_VIS on the first
in-class declaration, otherwise it might get ignored

libcxx/include/string

index 2556301..313ef9f 100644 (file)
@@ -785,6 +785,7 @@ private:
     __compressed_pair<__rep, allocator_type> __r_;
 
 public:
+    _LIBCPP_FUNC_VIS
     static const size_type npos = -1;
 
     _LIBCPP_INLINE_VISIBILITY basic_string()