-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Steven Watanabe Sent: 07 May 2009 15:38 To: boost-users@lists.boost.org Subject: Re: [Boost-users] multi_array warning with vs2005
AMDG
c:\program files\boost\boost_1_39_0\boost\multi_array.hpp(477) : warning C4996: 'std::uninitialized_fill_n': Function call with parameters
Hicham Mouline wrote: that may
be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
<snip>
Am I supposed to disable the warning explicitly in my user code? Or should the warning disable be pushed/pop in boost multi_array?
These warnings cannot always be suppressed with #pragma warning push/pop Just disable them
In Christ, Steven Watanabe
Just to clarify, I understand then that this multi_array code is standard compliant, and that the warning is specific to msvc and that multi_array developers couldn't not suppress the warning with pragmas for some reason... I shouldn't open a ticket then...