Are there any special compiler flags that I need to use to build a C++
project using boost with Visual Studio 2005? I am getting a C2220 compiler
error that an object cannot be created:
1>------ Build started: Project: data_containers, Configuration: Debug
Win32 ------
1>Compiling...
1>Memory_Map.cpp
1>C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(124) : error
C2220: warning treated as error - no 'object' file generated
1> C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(54) :
see reference to class template instantiation
'boost::io::detail::group4' being compiled
1> with
1> [
1> T1=std::ios_base &(__cdecl *)(std::ios_base &),
1> T2=std::_Smanipstd::ios_base::fmtflags,
1> T3=std::_Fillobj<char>,
1> T4=const boost::uint16_t &
1> ]
1> .\Memory_Map.cpp(341) : see reference to class template
instantiation 'boost::io::detail::group1<T1>' being compiled
1> with
1> [
1> T1=boost::io::detail::group4std::ios_base::fmtflags,std::_Fillobj<char>,const
boost::uint16_t &>
1> ]
1>C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(124) :
warning C4512: 'boost::io::detail::group4' : assignment
operator could not be generated
1> with
1> [
1> T1=std::ios_base &(__cdecl *)(std::ios_base &),
1> T2=std::_Smanipstd::ios_base::fmtflags,
1> T3=std::_Fillobj<char>,
1> T4=const boost::uint16_t &
1> ]
1>C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(58) : warning
C4512: 'boost::io::detail::group1<T1>' : assignment operator could not be
generated
1> with
1> [
1> T1=boost::io::detail::group4std::ios_base::fmtflags,std::_Fillobj<char>,const
boost::uint16_t &>
1> ]
1>C:\Program Files\boost\boost_1_33_1\boost/format/group.hpp(58) : warning
C4512: 'boost::io::detail::group1<T1>' : assignment operator could not be
generated
1> with
1> [
1> T1=const boost::uint16_t &
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/feed_args.hpp(103) : see reference
to class template instantiation 'boost::io::detail::group1<T1>' being
compiled
1> with
1> [
1> T1=const boost::uint16_t &
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/feed_args.hpp(150) : see reference
to function template instantiation 'void
boost::io::detail::put_last>(std::basic_ostream<_Elem,_Traits>
&,const boost::io::detail::group1>
&)' being compiled
1> with
1> [
1> T1=std::ios_base &(__cdecl *)(std::ios_base &),
1> T2=std::_Smanipstd::ios_base::fmtflags,
1> T3=std::_Fillobj<char>,
1> T4=const boost::uint16_t &,
1> _Elem=char,
1> _Traits=std::char_traits<char>
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/feed_args.hpp(242) : see reference
to function template instantiation 'void
boost::io::detail::put(T,const
boost::io::detail::format_item
&,std::basic_string<_Elem,_Traits,_Ax>
&,boost::io::basic_altstringbuf &,boost::io::detail::locale_t
*)' being compiled
1> with
1> [
1> Ch=char,
1> Tr=std::char_traits<char>,
1> Alloc=std::allocator<char>,
1> T=const
boost::io::detail::group1std::ios_base::fmtflags,std::_Fillobj<char>,const
boost::uint16_t &>> &,
1> _Elem=char,
1> _Traits=std::char_traits<char>,
1> _Ax=std::allocator<char>
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/feed_args.hpp(251) : see reference
to function template instantiation 'void
boost::io::detail::distribute(boost::basic_format<Ch> &,T)'
being compiled
1> with
1> [
1> Ch=char,
1> Tr=std::char_traits<char>,
1> Alloc=std::allocator<char>,
1> T=const
boost::io::detail::group1std::ios_base::fmtflags,std::_Fillobj<char>,const
boost::uint16_t &>> &
1> ]
1> C:\Program
Files\boost\boost_1_33_1\boost/format/format_class.hpp(64) : see reference
to function template instantiation 'boost::basic_format<Ch>
&boost::io::detail::feed(boost::basic_format<Ch>
&,const boost::io::detail::group1<T1>)' being compiled
1> with
1> [
1> Ch=char,
1> Tr=std::char_traits<char>,
1> Alloc=std::allocator<char>,
1>
T=boost::io::detail::group1std::ios_base::fmtflags,std::_Fillobj<char>,const
boost::uint16_t &>>,
1> T1=boost::io::detail::group4std::ios_base::fmtflags,std::_Fillobj<char>,const
boost::uint16_t &>
1> ]
1> .\Memory_Map.cpp(341) : see reference to function template
instantiation 'boost::basic_format<Ch> &boost::basic_format<Ch>::operator
%(const T &)' being compiled
1> with
1> [
1> Ch=char,
1> T1=boost::io::detail::group4std::ios_base::fmtflags,std::_Fillobj<char>,const
boost::uint16_t &>,
1>
T=boost::io::detail::group1std::ios_base::fmtflags,std::_Fillobj<char>,const
boost::uint16_t &>>
1> ]