views:

441

answers:

3

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).

+5  A: 

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.

Benoît
Had no idea such a tool existed, simply awesome, I'd triple upvote this answer if I could :)
Robert Gould
Thanks ! Glad i could help :)
Benoît
The idea of asio was always to be available in independent form from boost. And it is. Google for 'think asio' or the authors blog..
rama-jka toti
+5  A: 

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/

Jens
But it still requires a ton of boost headers, even though its not part of boost, I was also fooled by the name
Robert Gould
Frankly I don's see which headers you are aiming at.. It has its own thread bits..
rama-jka toti
+1  A: 

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.

Most part of TR1 right and majority of compilers already support it. And the date-time I'm not sure whether there was an option to run from it.. can't recall.
rama-jka toti
just recalled boost.system being one to get rid of.. memory fails me.
rama-jka toti