diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index 7604a29..24e35e2 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -1211,7 +1211,7 @@ namespace detail { template ::type* = nullptr> inline StringType fromUtf8(const std::string& utf8String, const typename StringType::allocator_type& alloc = typename StringType::allocator_type()) { - return StringType(utf8String.begin(), utf8String.end()); + return StringType(utf8String.begin(), utf8String.end(), alloc); } template ::type* = nullptr>