Boost logo

Boost :

Subject: [boost] [utility][foreach][1.39.0] warning C4512
From: Michael Mathews (muckjail_at_[hidden])
Date: 2009-05-08 09:54:32


HI folks,
Just upgraded to 1.39.0 and everything works well except I started getting
these warnings.

>C:\Boost\include\boost-1_39\boost/utility/addressof.hpp(30) : warning
C4512: 'boost::detail::addr_impl_ref<T>' : assignment operator could not be
generated
1> with
1> [
1> T=std::vector<double>
1> ]
1> C:\Boost\include\boost-1_39\boost/utility/addressof.hpp(56) : see
reference to class template instantiation 'boost::detail::addr_impl_ref<T>'
being compiled
1> with
1> [
1> T=std::vector<double>
1> ]
1> C:\Boost\include\boost-1_39\boost/foreach.hpp(627) : see reference
to function template instantiation 'T *boost::addressof<T>(T &)' being
compiled
1> with
1> [
1> T=std::vector<double>
1> ]
1> .\main.cpp(102) : see reference to function template instantiation
'boost::foreach_detail_::auto_any<T>
boost::foreach_detail_::contain<std::vector<_Ty>>(std::vector<_Ty>
&,boost::mpl::false_ *)' being compiled
1> with
1> [
1> T=std::vector<double> *,
1> _Ty=double
1> ]

msvc9 sp1 warning level 4. I didn't get these warnings in 1.38

enjoy
michael


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk