
We have to manually change the boost build files to specify that we want everything built with -D_SCL_SECURE=0. Without this we hit runtime errors when iterators form part of the interface to a lib (the specific issue was with signals, but it applies in the general case too). I'd like to see the boost build system provide the option of specifying an _SCL_SECURE=0 define at the command line, I don't think this is possible at the moment. Jim
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Anthony Williams Sent: 31 March 2008 21:32 To: boost@lists.boost.org Subject: Re: [boost] #pragma warning (dsiable : 4996) ineffective?
Roland Schwarz <roland.schwarz@chello.at> writes:
I have seen some attempts from library authors, e.g. boost/thread/win32/conditiona_variable.hpp to get rid of the annoying MSVC warnings.
However this seems not to work (at least on my machine).
It works here, that's why I put it in.
There seems to be some unintended interdependence with _SCL_SECURE_NO_DEPRECATE. I was not able to find out what exactly is causing the warnings not go away.
Hoever, compiling with _CRT_SECURE_NO_DEPRECATE and _SCL_SECURE_NO_DEPRECATE
quiets the build.
Yes, that works too, but it's a build option.
Couldn't this issue be handled by the boost config headers?
That would seem better than handling it on a case-by-case basis, but it might change things for user code too (i.e. any code included *after* the boost headers).
Is this something wrong with my setup only, or do others experience the same problem?
There must be something different with our setups.
Anthony -- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
________________________________________________________________________ This e-mail, and any attachment, is confidential. If you have received it in error, do not use or disclose the information in any way, notify me immediately, and please delete it from your system. ________________________________________________________________________