Question

I know there is a version of ASIO that is not included in the Boost namespace, but even then ASIO depends on Boost, but I'm wondering if there is a way to get ASIO to work without dependencies on Boost (because I cannot include Boost into the project, for too many reasons).

Was it helpful?

Solution

No, i don't believe so. ASIO has been using boost for as long as i have heard of it. I think they're very much interconnected. But you may be interested in a tool, bcp, which lets you extract the minimal subset of boost required for the libraries that you want to use.

OTHER TIPS

There is also a non-boost version of Asio:

Asio comes in two variants: (non-Boost) Asio and Boost.Asio.

See:

http://think-async.com/Asio/

The "non-boost asio" has its own thread bits instead of using boost.thread, but it still requires boost.date_time, boost.array, boost.utility, boost.bind, boost.shared_ptr...

There is no version of Asio that can work without any Boost dependency.

Recent ASIO versions can work without Boost in a standalone mode. This mode was probably enabled by the C++11 support of the library because it can now use standard threads, futures, etc instead of their Boost implementation. You can simply include ASIO like below and enjoy:

#define ASIO_STANDALONE
#include <asio.hpp>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top