
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 <vinnie.falco@gmail.com> Sent: Tuesday, February 11, 2025 2:41 PM To: boost-users@lists.boost.org Cc: Keeling, William <William.Keeling@nrg.com> Subject: Re: [Boost-users] boost::json question CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. On Tue, Feb 11, 2025 at 12:05 PM Keeling, William via Boost-users <boost-users@lists.boost.org<mailto:boost-users@lists.boost.org>> wrote: Any ideas what I am doing wrong? What version of Boost are you using? Thanks

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 <vinnie.falco@gmail.com> Sent: Tuesday, February 11, 2025 2:41 PM To: boost-users@lists.boost.org Cc: Keeling, William <William.Keeling@nrg.com> Subject: Re: [Boost-users] boost::json question CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. On Tue, Feb 11, 2025 at 12:05 PM Keeling, William via Boost-users <boost-users@lists.boost.org<mailto:boost-users@lists.boost.org>> wrote: Any ideas what I am doing wrong? What version of Boost are you using? Thanks

ср, 12 февр. 2025 г. в 02:00, Keeling, William via Boost-users <boost-users@lists.boost.org>:
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
-
Дмитрий Архипов