
12 Nov
2009
12 Nov
'09
4:51 p.m.
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?
No the test verifies that: variant = type-convertible-to-actual-type-in-variant; works as expected. The warning is a byproduct of the fact that the type stored in the variant is a short, and the type convertible to it is an int. Hopefully that's clear-ish :-) John.