Skip to content

Commit

Permalink
refs #18, added missing allocator parameter to std::string case of fr…
Browse files Browse the repository at this point in the history
…omUtf8
  • Loading branch information
gulrak committed May 18, 2019
1 parent 40ef125 commit 6d173c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ghc/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ namespace detail {
template <class StringType, typename std::enable_if<(sizeof(typename StringType::value_type) == 1)>::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 <class StringType, typename std::enable_if<(sizeof(typename StringType::value_type) == 2)>::type* = nullptr>
Expand Down

0 comments on commit 6d173c5

Please sign in to comment.