From 6d173c50a999503046b2a2a02681289fcb6619f2 Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Sat, 18 May 2019 10:47:49 +0200 Subject: [PATCH] refs #18, added missing allocator parameter to std::string case of fromUtf8 --- include/ghc/filesystem.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>