Boost logo

Boost Users :

Subject: Re: [Boost-users] multi_array warning with vs2005
From: Hicham Mouline (hicham_at_[hidden])
Date: 2009-05-07 10:47:06


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Steven Watanabe
> Sent: 07 May 2009 15:38
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] multi_array warning with vs2005
>
> AMDG
>
> Hicham Mouline wrote:
> > 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'
> >
> > <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...


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