Merge pull request #25 from karjonas/string_view

Fix missing string_view path specialization for C++17 support
This commit is contained in:
gulrak 2019-08-15 14:31:55 +02:00 committed by GitHub
commit 4b10425417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1475,6 +1475,15 @@ inline path::path(const std::u32string& source, format fmt)
postprocess_path_with_format(_path, fmt);
}
#ifdef __cpp_lib_string_view
template <>
inline path::path(const std::string_view& source, format fmt)
{
_path = detail::toUtf8(std::string(source));
postprocess_path_with_format(_path, fmt);
}
#endif
template <class Source, typename>
inline path u8path(const Source& source)
{