|
Boost-Build : |
Subject: Re: [Boost-build] Checking that a header file is self-sufficient
From: John Maddock (jz.maddock_at_[hidden])
Date: 2017-09-30 18:23:42
On 30/09/2017 19:19, Steven Watanabe via Boost-build wrote:
> AMDG
>
> 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.
--- This email has been checked for viruses by AVG. http://www.avg.com
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