Do you have to use Boost 1.66? System is header-only in Boost 1.69 and later. For the time being, yes. The update is not planned yet.
Is there a workaround that can be used in Boost 1.66 to achieve that?Or are there any consequences with the following approach that I'm thinking to use? :
-DBOOST_ERROR_CODE_HEADER_ONLY \ -DBOOST_SYSTEM_NO_DEPRECATED Thanks,Ashish
On Monday, 25 October, 2021, 11:24:15 pm IST, Peter Dimov via Boost
Hi All,
In my application, I'm trying to use Boost ASIO via boost 1.66 and defining the following two macros in the Makefile. Basically trying to use the header-only approach.
CFLAGS += \ -DBOOST_ERROR_CODE_HEADER_ONLY \ -DBOOST_SYSTEM_NO_DEPRECATED But then I came across this thread: https://lists.boost.org/Archives/boost/2017/10/239106.php "In header only mode, multiple instances may appear and thus no longer be proper singletons. Stuff breaks in this situation, badly." Is the above applicable to 1.66 too?How can I safely use the header-only approach in boost 1.66?
Do you have to use Boost 1.66? System is header-only in Boost 1.69 and later. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost