mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
Fix missing string_view path method
This commit is contained in:
parent
b6526679a3
commit
af3d35cc1d
@ -1475,6 +1475,15 @@ inline path::path(const std::u32string& source, format fmt)
|
|||||||
postprocess_path_with_format(_path, 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>
|
template <class Source, typename>
|
||||||
inline path u8path(const Source& source)
|
inline path u8path(const Source& source)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user