Subject: Re: [boost] Official warnings policy?
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-11-12 11:41:40
Stewart, Robert wrote:
> Peter Dimov wrote:
>> Stewart, Robert wrote:
>>> Indeed, Variant shouldn't suppress the warning, but wasn't the
>>> original issue because a test was triggering it? IOW, it is the
>>> test code that should work around or suppress the warning.
>> This is what the test tests. If it "works around the warning"
>> it is no
>> longer a test. You may as well remove it, which will also silence the
> The test tests that Variant produces a warning?
The test tests whether an int can be assigned to a variant, one of whose
types is a short. It should produce a warning; in this context, this is a
feature. User code that does the same should also produce a warning. This is
what warnings are for.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk