Boost logo

Boost Users :

Subject: Re: [Boost-users] Build boost asio http server examples single threaded using c++03
From: Gavin Lambert (boost_at_[hidden])
Date: 2018-12-19 05:14:37

On 19/12/2018 03:11, Eric Curtin wrote:
> I was wondering if anyone could help me out building all the boost
> asio http server examples from:
> But catch is, I need to use c++03/98, single threaded without
> dependencies on std::thread, boost::thread or posix threads. I also
> need static linking to all the other boost libraries. Also want to
> compile with g++ -O3 -flto on x86_64 Linux. How can I build these
> examples like this?

It's not possible. Asio internally uses mutexes (which require some
kind of threading library). Additionally in order to implement certain
kinds of async operations, Asio actually needs to create a small number
of worker threads.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at