
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Stewart, Robert Sent: Thursday, November 12, 2009 5:58 PM To: boost@lists.boost.org Subject: Re: [boost] Official warnings policy?
If the purpose of the test is to show that variant triggers the same warning as would an ordinary int-to-short assignment, getting the warning here is a good thing.
If the purpose of the test is to prove that assigning to variant has the same runtime behavior as non-variant code, as I suggested above, the warning is unwarranted noise.
I think *both* are valid purposes (though I suspect that the original author wasn't being as clever as that ;-) Paul PS have we flogged this to death yet? --- Paul A. Bristow Prizet Farmhouse Kendal, UK LA8 8AB +44 1539 561830, mobile +44 7714330204 pbristow@hetp.u-net.com