Boost logo

Boost :

Subject: Re: [boost] [thread] Can't use boost/thread/mutex.hpp without boost_system
From: Dave Abrahams (dave_at_[hidden])
Date: 2012-01-30 13:29:57

on Sun Jan 22 2012, Beman Dawes <> wrote:

> On Sun, Jan 22, 2012 at 8:29 AM, Mathias Gaunard
> <mathias.gaunard_at_[hidden]> wrote:
>> On 01/22/2012 12:00 PM, Vicente J. Botet Escriba wrote:
>>> I recognize that it could be difficult for libraries as Boost.Thread or
>>> Boost.FileSystem, but I don't think Boost.System will be on this case as
>>> its dependency are really minor, isn't it?
>>> Could you explain more deeply the problem you want to avoid?
>> error_code.cpp includes windows.h and puts lots of symbol in the global
>> namespace.
> Right. Including windows.h is a non-starter in a header.

I would rephrase that as, "_forcing_ the inclusion of windows.h in a
header is a non-starter." It's not unreasonable to say that if you
choose the header-only version of Boost.Filesystem, you have to accept
that cost.

Dave Abrahams
BoostPro Computing

Boost list run by bdawes at, gregod at, cpdaniel at, john at