I'm tying to disable checked iterators in release builds defining _SECURE_SCL=0.
On the other hand I'm using the multithreaded DLL runtime. This seems to have
been built with _SECURE_SCL=1 defined. It also seems that it contains an
instantiation of std::string.
The net result is that the following code uses checked iterator which I would
like to avoid in release builds.
bool foo( const std::string& sstr )
{
for ( std::string::const_iterator n = sstr.begin() ; n != sstr.end() ; ++n )
if ( ! isdigit( *n ) )
return false;
return true;
}
Is there a workaround for this? Can I define something to force the compiler to
use the STL headers instead of the code in the DLL runtime for std::string?
Thanks in advance.
--
Please remove "sam_" from email address.