[Boost-bugs] [Boost C++ Libraries] #11191: Warnings encountered when including boost/archive/binary_oarchive.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #11191: Warnings encountered when including boost/archive/binary_oarchive.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-16 18:24:32


#11191: Warnings encountered when including boost/archive/binary_oarchive.hpp
-----------------------+------------------------------
 Reporter: sag.bmr@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.56.0
 Severity: Problem | Keywords:
-----------------------+------------------------------
 My environment is a win7 64 bit machine running visual studio 2013, using
 boost v1.56, warning level - 4, treat warnings as errors.
 If I include binary_oarchive.hpp, I get the following output, unless I
 comment out the boost assertion on line 162 in
 boost/archive/basic_binary_oprimitive.hpp -

 BOOST_ASSERT(count <=
 std::size_t(boost::integer_traits<std::streamsize>::const_max));

 {{{
 1>------ Rebuild All started: Project: ConsoleApplication1, Configuration:
 Debug Win32 ------
 1> stdafx.cpp
 1> ConsoleApplication1.cpp
 1>c:\users\sbiddanda\documents\visual studio
 2013\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp(7):
 error C2220: warning treated as error - no 'object' file generated
 1>c:\users\sbiddanda\documents\visual studio
 2013\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp(7):
 warning C4100: 'argv' : unreferenced formal parameter
 1>c:\users\sbiddanda\documents\visual studio
 2013\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp(7):
 warning C4100: 'argc' : unreferenced formal parameter
 1>e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\basic_binary_oprimitive.hpp(162): warning
 C4310: cast truncates constant value
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\basic_binary_oprimitive.hpp(147) : while
 compiling class template member function 'void
 boost::archive::basic_binary_oprimitive<Archive,Elem,Tr>::save_binary(const
 void *,size_t)'
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , Elem=char
 1> , Tr=std::char_traits<char>
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\basic_binary_oprimitive.hpp(81) : see
 reference to function template instantiation 'void
 boost::archive::basic_binary_oprimitive<Archive,Elem,Tr>::save_binary(const
 void *,size_t)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , Elem=char
 1> , Tr=std::char_traits<char>
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\oserializer.hpp(88) : see reference
 to function template instantiation 'void
 boost::archive::basic_binary_oprimitive<Archive,Elem,Tr>::save<T>(const T
 &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , Elem=char
 1> , Tr=std::char_traits<char>
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\oserializer.hpp(88) : see reference
 to function template instantiation 'void
 boost::archive::basic_binary_oprimitive<Archive,Elem,Tr>::save<T>(const T
 &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , Elem=char
 1> , Tr=std::char_traits<char>
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\oserializer.hpp(232) : see
 reference to function template instantiation 'void
 boost::archive::save_access::save_primitive<Archive,T>(Archive &,const T
 &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\oserializer.hpp(308) : see
 reference to function template instantiation 'void
 boost::archive::detail::save_non_pointer_type<Archive>::save_primitive::invoke<T>(Archive
 &,const T &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\oserializer.hpp(308) : see
 reference to function template instantiation 'void
 boost::archive::detail::save_non_pointer_type<Archive>::save_primitive::invoke<T>(Archive
 &,const T &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\oserializer.hpp(525) : see
 reference to function template instantiation 'void
 boost::archive::detail::save_non_pointer_type<Archive>::invoke<const
 T>(Archive &,const T &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\oserializer.hpp(525) : see
 reference to function template instantiation 'void
 boost::archive::detail::save_non_pointer_type<Archive>::invoke<const
 T>(Archive &,const T &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\common_oarchive.hpp(69) : see
 reference to function template instantiation 'void
 boost::archive::save<Archive,T>(Archive &,T &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\basic_binary_oarchive.hpp(81) : see
 reference to function template instantiation 'void
 boost::archive::detail::common_oarchive<Archive>::save_override<const T>(T
 &,int)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\basic_binary_oarchive.hpp(81) : see
 reference to function template instantiation 'void
 boost::archive::detail::common_oarchive<Archive>::save_override<const T>(T
 &,int)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\binary_oarchive_impl.hpp(63) : see
 reference to function template instantiation 'void
 boost::archive::basic_binary_oarchive<Archive>::save_override<const
 T>(const T &,int)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\binary_oarchive_impl.hpp(63) : see
 reference to function template instantiation 'void
 boost::archive::basic_binary_oarchive<Archive>::save_override<const
 T>(const T &,int)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\interface_oarchive.hpp(63) : see
 reference to function template instantiation 'void
 boost::archive::binary_oarchive_impl<boost::archive::binary_oarchive,char,std::char_traits<char>>::save_override<T>(T
 &,int)' being compiled
 1> with
 1> [
 1> T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\interface_oarchive.hpp(63) : see
 reference to function template instantiation 'void
 boost::archive::binary_oarchive_impl<boost::archive::binary_oarchive,char,std::char_traits<char>>::save_override<T>(T
 &,int)' being compiled
 1> with
 1> [
 1> T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\common_oarchive.hpp(42) : see
 reference to function template instantiation 'Archive
 &boost::archive::detail::interface_oarchive<Archive>::operator <<<const
 boost::archive::version_type>(T &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\common_oarchive.hpp(42) : see
 reference to function template instantiation 'Archive
 &boost::archive::detail::interface_oarchive<Archive>::operator <<<const
 boost::archive::version_type>(T &)' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> , T=const boost::archive::version_type
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\detail\common_oarchive.hpp(41) : while
 compiling class template member function 'void
 boost::archive::detail::common_oarchive<Archive>::vsave(const
 boost::archive::version_type)'
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\basic_binary_oarchive.hpp(64) : see
 reference to class template instantiation
 'boost::archive::detail::common_oarchive<Archive>' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\binary_oarchive_impl.hpp(41) : see
 reference to class template instantiation
 'boost::archive::basic_binary_oarchive<Archive>' being compiled
 1> with
 1> [
 1> Archive=boost::archive::binary_oarchive
 1> ]
 1> e:\dev-tools\k\dev-tools\boost-
 mfc\v1.56\include\boost\archive\binary_oarchive.hpp(39) : see reference to
 class template instantiation
 'boost::archive::binary_oarchive_impl<boost::archive::binary_oarchive,char,std::char_traits<char>>'
 being compiled
 ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11191>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC