diff --git a/toml/parser.hpp b/toml/parser.hpp index 2339d9b..88013a5 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -3,6 +3,7 @@ #include "value.hpp" #include "acceptor.hpp" #include +#include #include #include #include @@ -1077,8 +1078,8 @@ toml::Table parse(std::basic_istream& is) std::wstring wstr(size, ' '); std::copy(contents.cbegin(), contents.cend(), wstr.begin()); - std::wstring_convert, wchar_t> cvter; - std::string u8str = converter.to_bytes(wstr); + std::wstring_convert, wchar_t> cvter; + std::string u8str = cvter.to_bytes(wstr); return parse_data::invoke(u8str.cbegin(), u8str.cend()); }