Re: Boost::serialization detection of Cxx Standard
John Maddock via Boost-users <[email protected]>
| Newsgroups | gmane.comp.lib.boost.user |
|---|---|
| Message-ID | <[email protected]> |
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.