Boost logo

Boost Users :

Subject: [Boost-users] multi_array warning with vs2005
From: Hicham Mouline (hicham_at_[hidden])
Date: 2009-05-07 07:42:09


Hello,

I get these warnings :

c:\program files\boost\boost_1_39_0\boost\multi_array.hpp(477) : warning
C4996: 'std::uninitialized_fill_n': Function call with parameters 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'

c:\program files\boost\boost_1_38_0\boost\multi_array\extent_gen.hpp(49) :
warning C4996: 'std::copy': Function call with parameters 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'

1>c:\program
files\boost\boost_1_38_0\boost\multi_array\multi_array_ref.hpp(374) :
warning C4996: 'std::transform': Function call with parameters 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'

1>c:\program
files\boost\boost_1_38_0\boost\multi_array\multi_array_ref.hpp(380) :
warning C4996: 'std::transform': Function call with parameters 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'

Ditto for boost_1_38_0

Am I supposed to disable the warning explicitly in my user code? Or should
the warning disable be pushed/pop in boost multi_array?

Rds,


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net