
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? Bye Georg

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.

Thank you John, that helped!
14.10.2022 13:37:16 John Maddock via Boost-users
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 mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Georg Gast
-
John Maddock