
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

wkeeling@pi5dev4g:~ $ dpkg -S /usr/include/boost/version.hpp
libboost1.81-dev:arm64: /usr/include/boost/version.hpp
From: Vinnie Falco

Thanks for pointing me in the correct direction – when I looked at the 1.81 docs it does not have the set_as_pointer().
I am running/developing on a raspberry pi and the latest package is 1.81 – can I get the later version and where do I find install and build instructions?
Thanks
From: Vinnie Falco

ср, 12 февр. 2025 г. в 02:00, Keeling, William via Boost-users
I am running/developing on a raspberry pi and the latest package is 1.81 – can I get the later version and where do I find install and build instructions?
You can get the latest Boost version vai one of the links here: https://www.boost.org/users/download/ You will likely have to build Boost.JSON yourself, or use the header-only approach (https://www.boost.org/doc/libs/1_87_0/libs/json/doc/html/json/overview.html#...).
participants (3)
-
Keeling, William
-
Vinnie Falco
-
Дмитрий Архипов