Boost logo

Boost-Build :

Subject: Re: [Boost-build] Checking that a header file is self-sufficient
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-09-30 18:38:32


AMDG

On 09/30/2017 12:23 PM, John Maddock via Boost-build wrote:
>
> On 30/09/2017 19:19, Steven Watanabe via Boost-build wrote:
>> On 09/30/2017 11:52 AM, Mikhail Strelnikov via Boost-build wrote:
>>> I think I've seen somebody (presumably Rene) posted jam code for
>>> checking that a header file is self-sufficient. I can't find it
>>> anywhere. Could somebody please send it to me again?
>>>
>> You just have to compile a source file that #includes the header.
>
> Don't you need to actually instantiate the templates (if any) as well?
> Otherwise errors in unused code may well go unchecked if there are ADL
> calls.
>

  True enough, but compiling the header is about
the best you can do while still having it fully
automated. To instantiate templates, you actually
have to know something about what the code does.

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk