diff --git a/include/boost/fusion/adapted/boost_tuple/boost_tuple_iterator.hpp b/include/boost/fusion/adapted/boost_tuple/boost_tuple_iterator.hpp index 850eef5f..ea30cb55 100644 --- a/include/boost/fusion/adapted/boost_tuple/boost_tuple_iterator.hpp +++ b/include/boost/fusion/adapted/boost_tuple/boost_tuple_iterator.hpp @@ -144,9 +144,8 @@ namespace boost { namespace fusion : is_same {}; - private: // silence MSVC warning C4512: assignment operator could not be generated - boost_tuple_iterator& operator= (boost_tuple_iterator const&); + BOOST_DELETED_FUNCTION(boost_tuple_iterator& operator= (boost_tuple_iterator const&)) }; template diff --git a/include/boost/fusion/container/deque/deque_iterator.hpp b/include/boost/fusion/container/deque/deque_iterator.hpp index c2203796..b0335e5f 100644 --- a/include/boost/fusion/container/deque/deque_iterator.hpp +++ b/include/boost/fusion/container/deque/deque_iterator.hpp @@ -111,9 +111,8 @@ namespace boost { namespace fusion { Seq& seq_; - private: // silence MSVC warning C4512: assignment operator could not be generated - deque_iterator& operator= (deque_iterator const&); + BOOST_DELETED_FUNCTION(deque_iterator& operator= (deque_iterator const&)) }; }} diff --git a/include/boost/fusion/container/list/cons_iterator.hpp b/include/boost/fusion/container/list/cons_iterator.hpp index 58b7fd9e..5c0491db 100644 --- a/include/boost/fusion/container/list/cons_iterator.hpp +++ b/include/boost/fusion/container/list/cons_iterator.hpp @@ -42,9 +42,8 @@ namespace boost { namespace fusion cons_type& cons; - private: // silence MSVC warning C4512: assignment operator could not be generated - cons_iterator& operator= (cons_iterator const&); + BOOST_DELETED_FUNCTION(cons_iterator& operator= (cons_iterator const&)) }; struct nil_iterator : iterator_base diff --git a/include/boost/fusion/container/map/map_iterator.hpp b/include/boost/fusion/container/map/map_iterator.hpp index b229cf55..3db7344b 100644 --- a/include/boost/fusion/container/map/map_iterator.hpp +++ b/include/boost/fusion/container/map/map_iterator.hpp @@ -156,9 +156,8 @@ namespace boost { namespace fusion Seq& seq_; - private: // silence MSVC warning C4512: assignment operator could not be generated - map_iterator& operator= (map_iterator const&); + BOOST_DELETED_FUNCTION(map_iterator& operator= (map_iterator const&)) }; }} diff --git a/include/boost/fusion/container/vector/vector_iterator.hpp b/include/boost/fusion/container/vector/vector_iterator.hpp index 150530d1..6f8033e6 100644 --- a/include/boost/fusion/container/vector/vector_iterator.hpp +++ b/include/boost/fusion/container/vector/vector_iterator.hpp @@ -43,9 +43,8 @@ namespace boost { namespace fusion Vector& vec; - private: // silence MSVC warning C4512: assignment operator could not be generated - vector_iterator& operator= (vector_iterator const&); + BOOST_DELETED_FUNCTION(vector_iterator& operator= (vector_iterator const&)) }; }} diff --git a/include/boost/fusion/sequence/io/detail/manip.hpp b/include/boost/fusion/sequence/io/detail/manip.hpp index 01dd476c..fc0d7d82 100644 --- a/include/boost/fusion/sequence/io/detail/manip.hpp +++ b/include/boost/fusion/sequence/io/detail/manip.hpp @@ -144,9 +144,8 @@ 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&); + BOOST_DELETED_FUNCTION(string_ios_manip& operator= (string_ios_manip const&)) }; } // detail diff --git a/include/boost/fusion/view/filter_view/filter_view.hpp b/include/boost/fusion/view/filter_view/filter_view.hpp index db61cad6..c56fb3cb 100644 --- a/include/boost/fusion/view/filter_view/filter_view.hpp +++ b/include/boost/fusion/view/filter_view/filter_view.hpp @@ -57,9 +57,8 @@ namespace boost { namespace fusion 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&); + BOOST_DELETED_FUNCTION(filter_view& operator= (filter_view const&)) }; }} diff --git a/include/boost/fusion/view/filter_view/filter_view_iterator.hpp b/include/boost/fusion/view/filter_view/filter_view_iterator.hpp index 8d77e12e..9280e72b 100644 --- a/include/boost/fusion/view/filter_view/filter_view_iterator.hpp +++ b/include/boost/fusion/view/filter_view/filter_view_iterator.hpp @@ -61,9 +61,8 @@ namespace boost { namespace fusion first_type first; - private: // silence MSVC warning C4512: assignment operator could not be generated - filter_iterator& operator= (filter_iterator const&); + BOOST_DELETED_FUNCTION(filter_iterator& operator= (filter_iterator const&)) }; }} diff --git a/include/boost/fusion/view/joint_view/joint_view.hpp b/include/boost/fusion/view/joint_view/joint_view.hpp index 676cbc54..03e38d69 100644 --- a/include/boost/fusion/view/joint_view/joint_view.hpp +++ b/include/boost/fusion/view/joint_view/joint_view.hpp @@ -69,10 +69,10 @@ namespace boost { namespace fusion BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED concat_last_type concat_last() const { return fusion::end(seq2); } - private: // silence MSVC warning C4512: assignment operator could not be generated - joint_view& operator= (joint_view const&); + BOOST_DELETED_FUNCTION(joint_view& operator= (joint_view const&)) + private: typename mpl::if_, Sequence1, Sequence1&>::type seq1; typename mpl::if_, Sequence2, Sequence2&>::type seq2; }; diff --git a/include/boost/fusion/view/joint_view/joint_view_iterator.hpp b/include/boost/fusion/view/joint_view/joint_view_iterator.hpp index ddd1341e..f6db3091 100644 --- a/include/boost/fusion/view/joint_view/joint_view_iterator.hpp +++ b/include/boost/fusion/view/joint_view/joint_view_iterator.hpp @@ -50,9 +50,8 @@ namespace boost { namespace fusion first_type first; concat_type concat; - private: // silence MSVC warning C4512: assignment operator could not be generated - joint_view_iterator& operator= (joint_view_iterator const&); + BOOST_DELETED_FUNCTION(joint_view_iterator& operator= (joint_view_iterator const&)) }; }} diff --git a/include/boost/fusion/view/nview/nview_iterator.hpp b/include/boost/fusion/view/nview/nview_iterator.hpp index 42e634e5..79c82dd9 100644 --- a/include/boost/fusion/view/nview/nview_iterator.hpp +++ b/include/boost/fusion/view/nview/nview_iterator.hpp @@ -47,9 +47,8 @@ namespace boost { namespace fusion Sequence& seq; - private: // silence MSVC warning C4512: assignment operator could not be generated - nview_iterator& operator= (nview_iterator const&); + BOOST_DELETED_FUNCTION(nview_iterator& operator= (nview_iterator const&)) }; }} diff --git a/include/boost/fusion/view/repetitive_view/repetitive_view.hpp b/include/boost/fusion/view/repetitive_view/repetitive_view.hpp index 32718e04..71dc51bc 100644 --- a/include/boost/fusion/view/repetitive_view/repetitive_view.hpp +++ b/include/boost/fusion/view/repetitive_view/repetitive_view.hpp @@ -44,9 +44,8 @@ namespace boost { namespace fusion stored_seq_type seq; - private: // silence MSVC warning C4512: assignment operator could not be generated - repetitive_view& operator= (repetitive_view const&); + BOOST_DELETED_FUNCTION(repetitive_view& operator= (repetitive_view const&)) }; }} diff --git a/include/boost/fusion/view/repetitive_view/repetitive_view_iterator.hpp b/include/boost/fusion/view/repetitive_view/repetitive_view_iterator.hpp index 74cc723e..775249ff 100644 --- a/include/boost/fusion/view/repetitive_view/repetitive_view_iterator.hpp +++ b/include/boost/fusion/view/repetitive_view/repetitive_view_iterator.hpp @@ -47,9 +47,8 @@ namespace boost { namespace fusion Sequence& seq; pos_type pos; - private: // silence MSVC warning C4512: assignment operator could not be generated - repetitive_view_iterator& operator= (repetitive_view_iterator const&); + BOOST_DELETED_FUNCTION(repetitive_view_iterator& operator= (repetitive_view_iterator const&)) }; }} diff --git a/include/boost/fusion/view/reverse_view/reverse_view.hpp b/include/boost/fusion/view/reverse_view/reverse_view.hpp index 0a9aca27..0aa3d106 100644 --- a/include/boost/fusion/view/reverse_view/reverse_view.hpp +++ b/include/boost/fusion/view/reverse_view/reverse_view.hpp @@ -61,9 +61,8 @@ namespace boost { namespace fusion 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 - reverse_view& operator= (reverse_view const&); + BOOST_DELETED_FUNCTION(reverse_view& operator= (reverse_view const&)) }; }} diff --git a/include/boost/fusion/view/reverse_view/reverse_view_iterator.hpp b/include/boost/fusion/view/reverse_view/reverse_view_iterator.hpp index a73e4eea..0a582f40 100644 --- a/include/boost/fusion/view/reverse_view/reverse_view_iterator.hpp +++ b/include/boost/fusion/view/reverse_view/reverse_view_iterator.hpp @@ -48,9 +48,8 @@ namespace boost { namespace fusion first_type first; - private: // silence MSVC warning C4512: assignment operator could not be generated - reverse_view_iterator& operator= (reverse_view_iterator const&); + BOOST_DELETED_FUNCTION(reverse_view_iterator& operator= (reverse_view_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 4a6fc5b1..f0633018 100644 --- a/include/boost/fusion/view/transform_view/transform_view.hpp +++ b/include/boost/fusion/view/transform_view/transform_view.hpp @@ -76,9 +76,8 @@ namespace boost { namespace fusion typename mpl::if_, Sequence1, Sequence1&>::type seq1; typename mpl::if_, Sequence2, Sequence2&>::type seq2; - private: // silence MSVC warning C4512: assignment operator could not be generated - transform_view& operator= (transform_view const&); + BOOST_DELETED_FUNCTION(transform_view& operator= (transform_view const&)) }; // Unary Version @@ -113,9 +112,8 @@ namespace boost { namespace fusion 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&); + BOOST_DELETED_FUNCTION(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 ab40bd74..2689ae8a 100644 --- a/include/boost/fusion/view/transform_view/transform_view_iterator.hpp +++ b/include/boost/fusion/view/transform_view/transform_view_iterator.hpp @@ -42,9 +42,8 @@ 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&); + BOOST_DELETED_FUNCTION(transform_view_iterator& operator= (transform_view_iterator const&)) }; // Binary Version @@ -70,9 +69,8 @@ namespace boost { namespace fusion 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&); + BOOST_DELETED_FUNCTION(transform_view_iterator2& operator= (transform_view_iterator2 const&)) }; }}