diff --git a/include/conversion.h b/include/conversion.h index 3fe5abd..f449816 100644 --- a/include/conversion.h +++ b/include/conversion.h @@ -40,9 +40,6 @@ namespace YAML template <> bool Converter<_Null>::Convert(const std::string& input, _Null& output); - - template <> - bool Converter::Convert(const std::string& input, std::wstring& output); } #endif // CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66 diff --git a/src/conversion.cpp b/src/conversion.cpp index fa199bb..1240e27 100644 --- a/src/conversion.cpp +++ b/src/conversion.cpp @@ -1,6 +1,5 @@ #include "conversion.h" #include -#include //////////////////////////////////////////////////////////////// // Specializations for converting a string to specific types @@ -88,19 +87,5 @@ namespace YAML { return input.empty() || input == "~" || input == "null" || input == "Null" || input == "NULL"; } - - template <> - bool Converter::Convert(const std::string& input, std::wstring& output) - { - output.clear(); - output.resize(std::mbstowcs(NULL, input.data(), input.size())); - std::mbstowcs( - (wchar_t *) output.data(), - input.data(), - input.size() - ); - - return true; - } }