Boost logo

Boost Users :

From: John Maddock (jz.maddock_at_[hidden])
Date: 2022-10-14 11:36:48


On 14/10/2022 10:04, Georg Gast via Boost-users wrote:
> Hi,
> I developed a patch and a test to serialize std::pmr::(w)strings in
> all 3 archive types. The test I set the requirement to <cxxstd>17. It
> works so far but when I compile the library for using it in my
> application the "hidden" functions behind
> "BOOST_NO_CXX17_MEMORY_RESOURCE" are not found by the linker as the
> define is set when the library is compiled.
>
> How to work around this?
>
Unfortunately, I think you will need to build the library with C++17
enabled, ie by added "cxxstd=17" to the b2 command line.

Whether this should be the default when available is open to question I
guess.

John.


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