diff --git a/include/boost/bind.hpp b/include/boost/bind.hpp index 351f180..d649598 100644 --- a/include/boost/bind.hpp +++ b/include/boost/bind.hpp @@ -31,6 +31,11 @@ # define BOOST_BIND_VISIT_EACH visit_each #endif +#ifdef BOOST_MSVC +# pragma warning(push) +# pragma warning(disable: 4512) // assignment operator could not be generated +#endif + namespace boost { @@ -73,7 +78,6 @@ public: private: T t_; - value & operator= (value const &); }; // arg @@ -135,9 +139,6 @@ public: #endif -private: - - list0 & operator= (list0 const &); }; template class list1 @@ -182,10 +183,6 @@ private: #endif A1 a1_; - -private: - - list1 & operator= (list1 const &); }; template class list2 @@ -233,10 +230,6 @@ private: A1 a1_; A2 a2_; - -private: - - list2 & operator= (list2 const &); }; template class list3 @@ -287,10 +280,6 @@ private: A1 a1_; A2 a2_; A3 a3_; - -private: - - list3 & operator= (list3 const &); }; template class list4 @@ -344,10 +333,6 @@ private: A2 a2_; A3 a3_; A4 a4_; - -private: - - list4 & operator= (list4 const &); }; template class list5 @@ -404,10 +389,6 @@ private: A3 a3_; A4 a4_; A5 a5_; - -private: - - list5 & operator= (list5 const &); }; template class list6 @@ -467,10 +448,6 @@ private: A4 a4_; A5 a5_; A6 a6_; - -private: - - list6 & operator= (list6 const &); }; template class list7 @@ -533,10 +510,6 @@ private: A5 a5_; A6 a6_; A7 a7_; - -private: - - list7 & operator= (list7 const &); }; template class list8 @@ -602,10 +575,6 @@ private: A6 a6_; A7 a7_; A8 a8_; - -private: - - list8 & operator= (list8 const &); }; template class list9 @@ -674,10 +643,6 @@ private: A7 a7_; A8 a8_; A9 a9_; - -private: - - list9 & operator= (list9 const &); }; #ifdef BOOST_NO_VOID_RETURNS @@ -878,9 +843,6 @@ public: #include #undef BOOST_BIND_EVALUATE -private: - - bind_t & operator= (bind_t const &); }; #else @@ -898,9 +860,6 @@ public: #include #undef BOOST_BIND_EVALUATE -private: - - implementation & operator= (implementation const &); }; }; @@ -922,9 +881,6 @@ public: #include #undef BOOST_BIND_EVALUATE -private: - - implementation & operator= (implementation const &); }; }; @@ -935,9 +891,6 @@ public: bind_t(F f, L const & l): bind_t_generator::BOOST_NESTED_TEMPLATE implementation(f, l) {} -private: - - bind_t & operator= (bind_t const &); }; #endif @@ -1360,4 +1313,9 @@ namespace boost::_bi::arg<9> _9; } +#ifdef BOOST_MSVC +# pragma warning(default: 4512) // assignment operator could not be generated +# pragma warning(pop) +#endif + #endif // #ifndef BOOST_BIND_HPP_INCLUDED