Boost logo

Boost Users :

From: Eoin (eoin-keyword-boostusers.07781a_at_[hidden])
Date: 2006-08-15 15:36:19


Hello, when compiling one of my projects which uses Boost.Format I get
the compiler warning shown below. I have defined both
_CRT_SECURE_NO_DEPRECATE & _CRT_NONSTDC_NO_DEPRECATE as suggested by
various web pages. With these the vast majority of warnings go away but
this pesky one attached here is still there. Would people know if there
is anything else I can do to get rid of this warning?

Thanks very much, kind regards Eoin.

Error given by vc 8.0

C:\Develop\Libraries\Boost\boost_cvs\boost/format/alt_sstream_impl.hpp(252)
: warning C4996: 'std::char_traits<char>::copy' was declared deprecated
       C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\iosfwd(446)
: see declaration of 'std::char_traits<char>::copy'
       Message: 'You have used a std:: construct that is not safe. See
documentation on how to use the Safe Standard C++ Library'
       
C:\Develop\Libraries\Boost\boost_cvs\boost/format/alt_sstream_impl.hpp(223)
: while compiling class template member function 'int
boost::io::basic_altstringbuf<Ch,Tr,Alloc>::overflow(int)'
       with
       [
           Ch=char,
           Tr=std::char_traits<char>,
           Alloc=std::allocator<char>
       ]
       
C:\Develop\Libraries\Boost\boost_cvs\boost/format/format_class.hpp(136)
: see reference to class template instantiation
'boost::io::basic_altstringbuf<Ch,Tr,Alloc>' being compiled
       with
       [
           Ch=char,
           Tr=std::char_traits<char>,
           Alloc=std::allocator<char>
       ]
       C:\Develop\Apps\Http\Http\src\server_connection.cpp(61) : see
reference to class template instantiation 'boost::basic_format<Ch>'
being compiled
       with
       [
           Ch=char
       ]


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