Boost logo

Boost :

Subject: Re: [boost] Should Boost adopt pimpl/d-pointer as much as it can?
From: Christopher Jefferson (chris_at_[hidden])
Date: 2010-03-24 12:10:25


On 24 Mar 2010, at 16:05, Andrey Semashev wrote:

> On 03/24/2010 12:16 AM, Artyom wrote:
>>
>> There is one big issue with precompiled headers -- you only have one
>> such header.
>
> Not true with GCC, AFAIK. The compiler will look for PCH before including the real header.

But it will only ever look for the PCH as the first header, for example given:

#include "a.hpp"
#include "b.hpp"

It will look for a pre-compiled a.hpp, but not a pre-compiled b.hpp. This is because (among other problems) a.hpp may #define some symbols which are then used in b.hpp.

Chris


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