Boost logo

Boost :

Subject: Re: [boost] [forward_declare] Interest Inquiry toward Faster Compile Times
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-08-02 03:53:10


On Thu, Aug 2, 2012 at 9:43 AM, Julien Nitard <julien.nitard_at_[hidden]> wrote:
>>> One of the common recommendations is to 'forward declare' everything and to use the PIMPL (private implementation pattern). Unfortunately, PIMPL usually implies heap allocation and if you ever want to return-by-value you are stuck including the entire header for the types you use in your header.
>>
>> It'd be nice if a future version of C++ allowed pimpl without space overhead.
>
> I am not sure why you are saying this, space is not the problem Daniel
> wants to address (though it be nice). Is it related to your message on
> std-proposal M.L. ? Daniel (and I ;) cares about Dymanic memory
> allocation. Though it would be good to measure whether modern

Yes, it is. I should've said heap allocation / indirection, space
indeed isn't the problem.

-- 
Olaf

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