![]() |
Boost Users : |
From: Keeling, William (William.Keeling_at_[hidden])
Date: 2025-02-11 19:55:40
json::value RCamCfg::GetCfgValue(const std::string& key)
{
try {return config_.at_pointer(key);}
catch(...) {
json::value x;
return x;}
}
bool RCamCfg::SetCfgValue(const std::string& key, const json::value& val)
{
try {config_.set_at_pointer(key, val);}
catch(...) {return false;}
return {true};
}
The first function compiles and runs but the second fails to compile with the following:
error: 'class boost::json::value' has no member named 'set_at_pointer'; did you mean 'at_pointer'?
config_is defined as "json::value config_;"
Any ideas what I am doing wrong?
Thanks
William Keeling
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net