Hello,
I am getting the compiler warnings below when I include the following in a source file.
#include <boost/archive/binary_iarchive.hpp>
Everything works fine, but I was wondering if there's any way to get rid of the warnings.
I am using boost 1.34.0 on windows XP, and building using Visual Studio 8.
Best Regards
Mahesh
C:\boost_1_34_0\boost/archive/basic_binary_iprimitive.hpp(148) : warning C4996:
'std::basic_streambuf<_Elem,_Traits>::sgetn' was declared deprecated
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\streambuf(122) : s
ee declaration of 'std::basic_streambuf<_Elem,_Traits>::sgetn'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
Message: 'You have used a std:: construct that is not safe. See document
ation on how to use the Safe Standard C++ Library'
C:\boost_1_34_0\boost/archive/basic_binary_iprimitive.hpp(120) : while c
ompiling class template member function 'void boost::archive::basic_binary_iprim
itive<Archive,Elem,Tr>::load_binary(void *,size_t)'
with
[
Archive=boost::archive::binary_iarchive,
Elem=char,
Tr=std::char_traits<char>
]
C:\boost_1_34_0\boost/archive/detail/iserializer.hpp(94) : see reference
to function template instantiation 'void boost::archive::basic_binary_iprimitiv
e<Archive,Elem,Tr>::load<T>(T &)' being compiled
with
[
Archive=boost::archive::binary_iarchive,
Elem=char,
Tr=std::char_traits<char>,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/detail/iserializer.hpp(348) : see referenc
e to function template instantiation 'void boost::archive::load_access::load_pri
mitive<Archive,T>(Archive &,T &)' being compiled
with
[
Archive=boost::archive::binary_iarchive,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/detail/iserializer.hpp(347) : while compil
ing class template member function 'void boost::archive::detail::load_non_pointe
r_type<Archive,T>::load_primitive::invoke(Archive &,T &)'
with
[
Archive=boost::archive::binary_iarchive,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/detail/iserializer.hpp(423) : see referenc
e to class template instantiation 'boost::archive::detail::load_non_pointer_type
<Archive,T>::load_primitive' being compiled
with
[
Archive=boost::archive::binary_iarchive,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/detail/iserializer.hpp(416) : while compil
ing class template member function 'void boost::archive::detail::load_non_pointe
r_type<Archive,T>::invoke(Archive &,T &)'
with
[
Archive=boost::archive::binary_iarchive,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/detail/iserializer.hpp(570) : see referenc
e to class template instantiation 'boost::archive::detail::load_non_pointer_type
<Archive,T>' being compiled
with
[
Archive=boost::archive::binary_iarchive,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/detail/common_iarchive.hpp(57) : see refer
ence to function template instantiation 'void boost::archive::load<Archive,T>(Ar
chive &,T &)' being compiled
with
[
Archive=boost::archive::binary_iarchive,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/basic_binary_iarchive.hpp(63) : see refere
nce to function template instantiation 'void boost::archive::detail::common_iarc
hive<Archive>::load_override<T>(T &,int)' being compiled
with
[
Archive=boost::archive::binary_iarchive,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/binary_iarchive_impl.hpp(45) : see referen
ce to function template instantiation 'void boost::archive::basic_binary_iarchiv
e<Archive>::load_override<T>(T &,int)' being compiled
with
[
Archive=boost::archive::binary_iarchive,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/detail/interface_iarchive.hpp(77) : see re
ference to function template instantiation 'void boost::archive::binary_iarchive
_impl<Archive,Elem,Tr>::load_override<T>(T &,int)' being compiled
with
[
Archive=boost::archive::binary_iarchive,
Elem=char,
Tr=std::char_traits<char>,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/basic_binary_iarchive.hpp(73) : see refere
nce to function template instantiation 'Archive &boost::archive::detail::interfa
ce_iarchive<Archive>::operator >><unsigned char>(T &)' being compiled
with
[
Archive=boost::archive::binary_iarchive,
T=unsigned char
]
C:\boost_1_34_0\boost/archive/basic_binary_iarchive.hpp(70) : while comp
iling class template member function 'void boost::archive::basic_binary_iarchive
<Archive>::load_override(boost::archive::version_type &,int)'
with
[
Archive=boost::archive::binary_iarchive
]
C:\boost_1_34_0\boost/archive/binary_iarchive_impl.hpp(31) : see referen
ce to class template instantiation 'boost::archive::basic_binary_iarchive<Archiv
e>' being compiled
with
[
Archive=boost::archive::binary_iarchive
]
C:\boost_1_34_0\boost/archive/binary_iarchive.hpp(34) : see reference to
class template instantiation 'boost::archive::binary_iarchive_impl<Archive,Elem
,Tr>' being compiled
with
[
Archive=boost::archive::binary_iarchive,
Elem=char,
Tr=std::char_traits<char>
]
C:\boost_1_34_0\boost/archive/basic_binary_iprimitive.hpp(159) : warning C4996:
'std::basic_streambuf<_Elem,_Traits>::sgetn' was declared deprecated
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\streambuf(122) : s
ee declaration of 'std::basic_streambuf<_Elem,_Traits>::sgetn'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
Message: 'You have used a std:: construct that is not safe. See document
ation on how to use the Safe Standard C++ Library'