mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Added support for emitting and represeting null
This commit is contained in:
@@ -83,6 +83,12 @@ namespace YAML
|
||||
return false;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool Converter<_Null>::Convert(const std::string& input, _Null& /*output*/)
|
||||
{
|
||||
return input.empty() || input == "~" || input == "null" || input == "Null" || input == "NULL";
|
||||
}
|
||||
|
||||
template <>
|
||||
bool Converter<std::wstring>::Convert(const std::string& input, std::wstring& output)
|
||||
{
|
||||
|
Reference in New Issue
Block a user