Fix build error in MSVC (#152)

This commit is contained in:
Chloe 2022-12-25 18:36:54 +00:00 committed by GitHub
commit 4143cea00f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ namespace detail
{
public:
template <typename T>
explicit semantic_string_view(T&& obj, decltype(string_view(std::forward<T>(obj)), 0) = 0)
explicit semantic_string_view(T&& obj, decltype(string_view(std::declval<T>()), 0) = 0)
: str_(std::forward<T>(obj))
{}