forked from boostorg/fusion
Explicitly delete all non implemented assignment operators.
Commit (almost) automatically generated with the following sed command: sed -i -ne '1h;1!H;${g;s|\n[[:blank:]]*private:\n\([[:blank:]]*\)// silence MSVC warning C4512: assignment operator could not be generated\n\([[:blank:]]*\)\([^\n]\+\);\n|\n\1// silence MSVC warning C4512: assignment operator could not be generated\n\2BOOST_DELETED_FUNCTION(\3)\n|g;p}' $(git ls-files)
This commit is contained in:
@ -144,9 +144,8 @@ namespace boost { namespace fusion
|
|||||||
: is_same<typename I1::identity, typename I2::identity>
|
: is_same<typename I1::identity, typename I2::identity>
|
||||||
{};
|
{};
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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 <typename Null>
|
template <typename Null>
|
||||||
|
@ -111,9 +111,8 @@ namespace boost { namespace fusion {
|
|||||||
|
|
||||||
Seq& seq_;
|
Seq& seq_;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
@ -42,9 +42,8 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
cons_type& cons;
|
cons_type& cons;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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<nil_iterator>
|
struct nil_iterator : iterator_base<nil_iterator>
|
||||||
|
@ -156,9 +156,8 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
Seq& seq_;
|
Seq& seq_;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
@ -43,9 +43,8 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
Vector& vec;
|
Vector& vec;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -144,9 +144,8 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
Stream& stream;
|
Stream& stream;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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
|
} // detail
|
||||||
|
@ -57,9 +57,8 @@ namespace boost { namespace fusion
|
|||||||
last_type last() const { return fusion::end(seq); }
|
last_type last() const { return fusion::end(seq); }
|
||||||
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -61,9 +61,8 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
first_type first;
|
first_type first;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -69,10 +69,10 @@ namespace boost { namespace fusion
|
|||||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||||
concat_last_type concat_last() const { return fusion::end(seq2); }
|
concat_last_type concat_last() const { return fusion::end(seq2); }
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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_<traits::is_view<Sequence1>, Sequence1, Sequence1&>::type seq1;
|
typename mpl::if_<traits::is_view<Sequence1>, Sequence1, Sequence1&>::type seq1;
|
||||||
typename mpl::if_<traits::is_view<Sequence2>, Sequence2, Sequence2&>::type seq2;
|
typename mpl::if_<traits::is_view<Sequence2>, Sequence2, Sequence2&>::type seq2;
|
||||||
};
|
};
|
||||||
|
@ -50,9 +50,8 @@ namespace boost { namespace fusion
|
|||||||
first_type first;
|
first_type first;
|
||||||
concat_type concat;
|
concat_type concat;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -47,9 +47,8 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
Sequence& seq;
|
Sequence& seq;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
@ -44,9 +44,8 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
stored_seq_type seq;
|
stored_seq_type seq;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
@ -47,9 +47,8 @@ namespace boost { namespace fusion
|
|||||||
Sequence& seq;
|
Sequence& seq;
|
||||||
pos_type pos;
|
pos_type pos;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -61,9 +61,8 @@ namespace boost { namespace fusion
|
|||||||
last_type last() const { return fusion::end(seq); }
|
last_type last() const { return fusion::end(seq); }
|
||||||
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -48,9 +48,8 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
first_type first;
|
first_type first;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -76,9 +76,8 @@ namespace boost { namespace fusion
|
|||||||
typename mpl::if_<traits::is_view<Sequence1>, Sequence1, Sequence1&>::type seq1;
|
typename mpl::if_<traits::is_view<Sequence1>, Sequence1, Sequence1&>::type seq1;
|
||||||
typename mpl::if_<traits::is_view<Sequence2>, Sequence2, Sequence2&>::type seq2;
|
typename mpl::if_<traits::is_view<Sequence2>, Sequence2, Sequence2&>::type seq2;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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
|
// Unary Version
|
||||||
@ -113,9 +112,8 @@ namespace boost { namespace fusion
|
|||||||
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
typename mpl::if_<traits::is_view<Sequence>, Sequence, Sequence&>::type seq;
|
||||||
transform_type f;
|
transform_type f;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -42,9 +42,8 @@ namespace boost { namespace fusion
|
|||||||
first_type first;
|
first_type first;
|
||||||
transform_type f;
|
transform_type f;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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
|
// Binary Version
|
||||||
@ -70,9 +69,8 @@ namespace boost { namespace fusion
|
|||||||
first2_type first2;
|
first2_type first2;
|
||||||
transform_type f;
|
transform_type f;
|
||||||
|
|
||||||
private:
|
|
||||||
// silence MSVC warning C4512: assignment operator could not be generated
|
// 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&))
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user