I have test.yaml contents follow: port: 1234 server: null but parse server fail: std::string str = node["server"].as<<std::string>>(); yaml-cpp: error at line 0, column 0: bad conversion if change null to other, it's ok
I have test.yaml contents follow:
port: 1234
server: null
but parse server fail:
std::string str = node["server"].as<std::string>();
yaml-cpp: error at line 0, column 0: bad conversion
if change null to other, it's ok