Boost logo

Boost :

From: Ashish Singh (singh.ashish6_at_[hidden])
Date: 2021-10-25 12:43:46


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?

Thanks,Ashish


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk