C++ Programming
08-01-2009, 01:11 PM
Hi i use the icstring (stl insensitive case string) implementation from Adapted from The C++ Standard Library - A Tutorial and Reference by Nicolai M. Josuttis, Addison-Wesley
-> http://www.josuttis.com/libbook/string/icstring.hpp.html
i try to compile it with vs2008 and i have nasty warning :
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\iosfwd(589) : warning C4996: 'std::_Traits_helper::copy_s': 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\Microsoft Visual Studio 9.0\VC\include\iosfwd(604) : see declaration of 'std::_Traits_helper::copy_s'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(2155) : see reference to function template instantiation 'std::char_traits::char_type *std::_Traits_helper::copy_s(std::char_traits::char_type *,size_t,const std::char_traits::char_type *,size_t)' being compiled
with
[
_Traits=std::ignorecase_traits
]
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(2148) : while compiling class template member function 'void std::basic_string::_Tidy(bool,unsigned int)'
with
[
_Elem=char,
_Traits=std::ignorecase_traits
]
d:\dev\projet\code\core\io\..\String\icstring(77) : see reference to class template instantiation 'std::basic_string' being compiled
with
[
_Elem=char,
_Traits=std::ignorecase_traits
]
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\iosfwd(607) : warning C4996: 'std::char_traits::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'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\iosfwd(453) : see declaration of 'std::char_traits::copy'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\iosfwd(589) : see reference to function template instantiation 'std::char_traits::char_type *std::_Traits_helper::copy_s(std::char_traits::char_type *,size_t,const std::char_traits::char_type *,size_t,std::_Unsecure_char_traits_tag)' being compiled
with
[
_Traits=std::ignorecase_traits
]
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(2155) : see reference to function template instantiation 'std::char_traits::char_type *std::_Traits_helper::copy_s(std::char_traits::char_type *,size_t,const std::char_traits::char_type *,size_t)' being compiled
with
[
_Traits=std::ignorecase_traits
]
I try a lot of things but the problem seems to be on ms header of _Traits_helper, i don't undestand ?????
...
-> http://www.josuttis.com/libbook/string/icstring.hpp.html
i try to compile it with vs2008 and i have nasty warning :
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\iosfwd(589) : warning C4996: 'std::_Traits_helper::copy_s': 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\Microsoft Visual Studio 9.0\VC\include\iosfwd(604) : see declaration of 'std::_Traits_helper::copy_s'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(2155) : see reference to function template instantiation 'std::char_traits::char_type *std::_Traits_helper::copy_s(std::char_traits::char_type *,size_t,const std::char_traits::char_type *,size_t)' being compiled
with
[
_Traits=std::ignorecase_traits
]
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(2148) : while compiling class template member function 'void std::basic_string::_Tidy(bool,unsigned int)'
with
[
_Elem=char,
_Traits=std::ignorecase_traits
]
d:\dev\projet\code\core\io\..\String\icstring(77) : see reference to class template instantiation 'std::basic_string' being compiled
with
[
_Elem=char,
_Traits=std::ignorecase_traits
]
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\iosfwd(607) : warning C4996: 'std::char_traits::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'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\iosfwd(453) : see declaration of 'std::char_traits::copy'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\iosfwd(589) : see reference to function template instantiation 'std::char_traits::char_type *std::_Traits_helper::copy_s(std::char_traits::char_type *,size_t,const std::char_traits::char_type *,size_t,std::_Unsecure_char_traits_tag)' being compiled
with
[
_Traits=std::ignorecase_traits
]
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(2155) : see reference to function template instantiation 'std::char_traits::char_type *std::_Traits_helper::copy_s(std::char_traits::char_type *,size_t,const std::char_traits::char_type *,size_t)' being compiled
with
[
_Traits=std::ignorecase_traits
]
I try a lot of things but the problem seems to be on ms header of _Traits_helper, i don't undestand ?????
...