Fix C++ build on MSVC

This commit is contained in:
Olivier Goffart 2020-11-03 17:42:21 +01:00
parent 11e55dd8d2
commit a6dbd0d7fa

View file

@ -83,7 +83,7 @@ struct SharedString
} }
const char *begin() const { return data(); } const char *begin() const { return data(); }
const char *end() const { return std::string_view(*this).end(); } const char *end() const { return &*std::string_view(*this).end(); }
/// Creates a new SharedString from the given number \a n. The string representation of the /// Creates a new SharedString from the given number \a n. The string representation of the
/// number uses a minimal formatting scheme: If \a n has no fractional part, the number will be /// number uses a minimal formatting scheme: If \a n has no fractional part, the number will be