
12 Nov
2009
12 Nov
'09
4:41 p.m.
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 warning.
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.