diff --git a/include/boost/fusion/adapted/struct/struct_iterator.hpp b/include/boost/fusion/adapted/struct/struct_iterator.hpp index f2eb7ea9..fe26aa33 100644 --- a/include/boost/fusion/adapted/struct/struct_iterator.hpp +++ b/include/boost/fusion/adapted/struct/struct_iterator.hpp @@ -95,6 +95,10 @@ namespace boost { namespace fusion return type(); } }; + + private: + // silence MSVC warning C4512: assignment operator could not be generated + struct_iterator& operator= (struct_iterator const&); }; }} diff --git a/include/boost/fusion/container/list/cons_iterator.hpp b/include/boost/fusion/container/list/cons_iterator.hpp index 7ef034e3..9d67a649 100644 --- a/include/boost/fusion/container/list/cons_iterator.hpp +++ b/include/boost/fusion/container/list/cons_iterator.hpp @@ -34,11 +34,15 @@ namespace boost { namespace fusion typedef cons_iterator_identity< typename add_const::type> identity; - + explicit cons_iterator(cons_type& cons) : cons(cons) {} cons_type& cons; + + private: + // silence MSVC warning C4512: assignment operator could not be generated + cons_iterator& operator= (cons_iterator const&); }; struct nil_iterator : iterator_base diff --git a/include/boost/fusion/container/vector/detail/vector_n.hpp b/include/boost/fusion/container/vector/detail/vector_n.hpp index 2d9ac128..ea314ac2 100644 --- a/include/boost/fusion/container/vector/detail/vector_n.hpp +++ b/include/boost/fusion/container/vector/detail/vector_n.hpp @@ -105,7 +105,7 @@ BOOST_PP_CAT(vector, N)( Sequence const& seq #if (N == 1) - , typename disable_if >::type* dummy = 0 + , typename disable_if >::type* /*dummy*/ = 0 #endif ) : base_type(base_type::init_from_sequence(seq)) {} @@ -133,14 +133,14 @@ template typename add_reference::type>::type - at_impl(I i) + at_impl(I) { return this->at_impl(mpl::int_()); } template typename add_reference::type>::type>::type - at_impl(I i) const + at_impl(I) const { return this->at_impl(mpl::int_()); } diff --git a/include/boost/fusion/sequence/io/detail/in.hpp b/include/boost/fusion/sequence/io/detail/in.hpp index cd772514..b0620284 100644 --- a/include/boost/fusion/sequence/io/detail/in.hpp +++ b/include/boost/fusion/sequence/io/detail/in.hpp @@ -35,7 +35,7 @@ namespace boost { namespace fusion { namespace detail template static void - read(IS& is, char const* delim, mpl::true_) + read(IS&, char const*, mpl::true_) { } }; @@ -44,7 +44,7 @@ namespace boost { namespace fusion { namespace detail { template static void - call(IS& is, First const&, Last const&, mpl::true_) + call(IS&, First const&, Last const&, mpl::true_) { } diff --git a/include/boost/fusion/sequence/io/detail/manip.hpp b/include/boost/fusion/sequence/io/detail/manip.hpp index dd9a5265..988f8bc2 100644 --- a/include/boost/fusion/sequence/io/detail/manip.hpp +++ b/include/boost/fusion/sequence/io/detail/manip.hpp @@ -146,6 +146,10 @@ namespace boost { namespace fusion } Stream& stream; + + private: + // silence MSVC warning C4512: assignment operator could not be generated + string_ios_manip& operator= (string_ios_manip const&); }; } // detail diff --git a/include/boost/fusion/sequence/io/detail/out.hpp b/include/boost/fusion/sequence/io/detail/out.hpp index c8ab2085..6d0c28a7 100644 --- a/include/boost/fusion/sequence/io/detail/out.hpp +++ b/include/boost/fusion/sequence/io/detail/out.hpp @@ -35,7 +35,7 @@ namespace boost { namespace fusion { namespace detail template static void - print(OS& os, char const* delim, mpl::true_) + print(OS&, char const*, mpl::true_) { } }; @@ -44,7 +44,7 @@ namespace boost { namespace fusion { namespace detail { template static void - call(OS& os, First const&, Last const&, mpl::true_) + call(OS&, First const&, Last const&, mpl::true_) { } diff --git a/include/boost/fusion/view/filter_view/filter_view.hpp b/include/boost/fusion/view/filter_view/filter_view.hpp index c74476c7..69f17329 100644 --- a/include/boost/fusion/view/filter_view/filter_view.hpp +++ b/include/boost/fusion/view/filter_view/filter_view.hpp @@ -53,6 +53,10 @@ namespace boost { namespace fusion first_type first() const { return fusion::begin(seq); } last_type last() const { return fusion::end(seq); } typename mpl::if_, Sequence, Sequence&>::type seq; + + private: + // silence MSVC warning C4512: assignment operator could not be generated + filter_view& operator= (filter_view const&); }; }} diff --git a/include/boost/fusion/view/nview/nview_iterator.hpp b/include/boost/fusion/view/nview/nview_iterator.hpp index 60895093..4fc06a85 100644 --- a/include/boost/fusion/view/nview/nview_iterator.hpp +++ b/include/boost/fusion/view/nview/nview_iterator.hpp @@ -45,6 +45,10 @@ namespace boost { namespace fusion : seq(seq) {} Sequence& seq; + + private: + // silence MSVC warning C4512: assignment operator could not be generated + nview_iterator& operator= (nview_iterator const&); }; }} diff --git a/include/boost/fusion/view/transform_view/transform_view.hpp b/include/boost/fusion/view/transform_view/transform_view.hpp index fcf876a0..78b6560e 100644 --- a/include/boost/fusion/view/transform_view/transform_view.hpp +++ b/include/boost/fusion/view/transform_view/transform_view.hpp @@ -99,6 +99,10 @@ namespace boost { namespace fusion last_type last() const { return fusion::end(seq); } typename mpl::if_, Sequence, Sequence&>::type seq; transform_type f; + + private: + // silence MSVC warning C4512: assignment operator could not be generated + transform_view& operator= (transform_view const&); }; }} diff --git a/include/boost/fusion/view/transform_view/transform_view_iterator.hpp b/include/boost/fusion/view/transform_view/transform_view_iterator.hpp index bb4b6afd..fde67323 100644 --- a/include/boost/fusion/view/transform_view/transform_view_iterator.hpp +++ b/include/boost/fusion/view/transform_view/transform_view_iterator.hpp @@ -39,6 +39,10 @@ namespace boost { namespace fusion first_type first; transform_type f; + + private: + // silence MSVC warning C4512: assignment operator could not be generated + transform_view_iterator& operator= (transform_view_iterator const&); }; // Binary Version @@ -62,6 +66,10 @@ namespace boost { namespace fusion first1_type first1; first2_type first2; transform_type f; + + private: + // silence MSVC warning C4512: assignment operator could not be generated + transform_view_iterator2& operator= (transform_view_iterator2 const&); }; }}