From: Martin Wille (mw8329_at_[hidden])
Date: 2006-08-19 04:47:47
Frederick Akalin wrote:
> When compiling the example programs for dynamic_bitset with MSVC++ 8.0,
> I get the following message:
> C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xutility(2841) :
> warning C4996: 'std::_Fill_n' was declared deprecated
> and an exhortation to use the "Safe Standard C++ Library".
> As my first task as dynamic_bitset's maintainer, I want to modify it to
> not trigger this warning. Unfortunately, unlike most of the other
> functions that trigger this warning which have _s alternatives, the only
> alternative to std::fill_n I could find is MS's "safe" version in their
> standard library extension. There's a preprocessor switch I can set,
> (_CRT_SECURE_NO_DEPRECATE) but I believe it has to be set globally, as
> it seemed to have no effect when I included it in dynamic_bitset.hpp.
> Does this affect any other libraries? Am I missing anything? What is
> the best way to solve this?
IMO, MS is not in a position to deprecate anything in the C++ standard.
So it makes perfect sense to ignore this problem totally and let the
user handle it by properly disabling this annoyance. I don't see any
need for an action on the Boost side.
Send instant messages to your online friends http://au.messenger.yahoo.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk