Generating the IOTMP client binary on a Raspberry Pi Model 3 B gives me an error:
[ 27%] Building CXX object CMakeFiles/thinger_iotmp.dir/src/main.cpp.o
In file included from /usr/include/boost/asio.hpp:23,
from /home/calizfa/IOTMP-Linux/src/thinger/asio/workers.hpp:6,
from /home/calizfa/IOTMP-Linux/src/thinger/thinger.h:25,
from /home/calizfa/IOTMP-Linux/src/main.cpp:24:
/usr/include/boost/asio/awaitable.hpp: In constructor ‘boost::asio::awaitable<T, Executor>::awaitable(boost::asio::awaitable<T, Executor>&&)’:
/usr/include/boost/asio/awaitable.hpp:68:19: error: ‘exchange’ is not a member of ‘std’; did you mean ‘std::atomicimpl::exchange’?
68 | : frame(std::exchange(other.frame_, nullptr))
| ^~~~
In file included from /usr/include/c++/12/bits/shared_ptr_atomic.h:33,
from /usr/include/c++/12/memory:78,
from /usr/include/boost/asio/associated_allocator.hpp:19,
from /usr/include/boost/asio.hpp:20:
/usr/include/c++/12/bits/atomic_base.h:976:7: note: ‘std::atomic_impl::exchange’ declared here
976 | exchange(_Tp* ptr, _Val<_Tp> desired, memory_order __m) noexcept
| ^~~~
make[2]: [CMakeFiles/thinger_iotmp.dir/build.make:76: CMakeFiles/thinger_iotmp.dir/src/main.cpp.o] Error 1
make[1]: [CMakeFiles/Makefile2:119: CMakeFiles/thinger_iotmp.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
fa@raspberrypi:~/IOTMP-Linux/built $
What can I do?