Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated copy warnings #153

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions include/boost/numeric/ublas/banded.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,11 @@ class banded_indexing<row_major_tag> {
const_iterator1 (const iterator1 &it):
container_const_reference<self_type> (it ()), it1_ (it.it1_), it2_ (it.it2_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator1 (const const_iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator1 &operator ++ () {
Expand Down Expand Up @@ -668,6 +673,11 @@ class banded_indexing<row_major_tag> {
iterator1 (self_type &m, size_type it1, size_type it2):
container_reference<self_type> (m), it1_ (it1), it2_ (it2) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator1 (const iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator1 &operator ++ () {
Expand Down Expand Up @@ -813,6 +823,11 @@ class banded_indexing<row_major_tag> {
const_iterator2 (const iterator2 &it):
container_const_reference<self_type> (it ()), it1_ (it.it1_), it2_ (it.it2_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator2 (const const_iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
Expand Down Expand Up @@ -989,6 +1004,11 @@ class banded_indexing<row_major_tag> {
iterator2 (self_type &m, size_type it1, size_type it2):
container_reference<self_type> (m), it1_ (it1), it2_ (it2) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator2 (const iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator2 &operator ++ () {
Expand Down Expand Up @@ -1578,6 +1598,11 @@ class banded_indexing<row_major_tag> {
const_iterator1 (const iterator1 &it):
container_const_reference<self_type> (it ()), it1_ (it.it1_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator1 (const const_iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator1 &operator ++ () {
Expand Down Expand Up @@ -1766,6 +1791,11 @@ class banded_indexing<row_major_tag> {
iterator1 (self_type &m, const subiterator1_type &it1):
container_reference<self_type> (m), it1_ (it1) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator1 (const iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator1 &operator ++ () {
Expand Down Expand Up @@ -1924,6 +1954,11 @@ class banded_indexing<row_major_tag> {
const_iterator2 (const iterator2 &it):
container_const_reference<self_type> (it ()), it2_ (it.it2_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator2 (const const_iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
Expand Down Expand Up @@ -2112,6 +2147,11 @@ class banded_indexing<row_major_tag> {
iterator2 (self_type &m, const subiterator2_type &it2):
container_reference<self_type> (m), it2_ (it2) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator2 (const iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator2 &operator ++ () {
Expand Down
5 changes: 5 additions & 0 deletions include/boost/numeric/ublas/detail/iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,11 @@ namespace boost { namespace numeric { namespace ublas {
indexed_iterator (container_type &c, size_type it):
container_reference<container_type> (c), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
indexed_iterator (const indexed_iterator&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
indexed_iterator &operator ++ () {
Expand Down
105 changes: 105 additions & 0 deletions include/boost/numeric/ublas/matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,11 @@ namespace boost { namespace numeric {
const_iterator1 (const iterator1 &it):
container_const_reference<self_type> (it ()), it_ (it.it_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator1 (const const_iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator1 &operator ++ () {
Expand Down Expand Up @@ -683,6 +688,11 @@ namespace boost { namespace numeric {
iterator1 (self_type &m, const subiterator_type &it):
container_reference<self_type> (m), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator1 (const iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator1 &operator ++ () {
Expand Down Expand Up @@ -828,6 +838,11 @@ namespace boost { namespace numeric {
const_iterator2 (const iterator2 &it):
container_const_reference<self_type> (it ()), it_ (it.it_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator2 (const const_iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
Expand Down Expand Up @@ -1006,6 +1021,11 @@ namespace boost { namespace numeric {
iterator2 (self_type &m, const subiterator_type &it):
container_reference<self_type> (m), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator2 (const iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator2 &operator ++ () {
Expand Down Expand Up @@ -1588,6 +1608,11 @@ namespace boost { namespace numeric {
const_iterator1 (const iterator1 &it):
container_const_reference<self_type> (it ()), it_ (it.it_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator1 (const const_iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator1 &operator ++ () {
Expand Down Expand Up @@ -1766,6 +1791,11 @@ namespace boost { namespace numeric {
iterator1 (self_type &m, const subiterator_type &it):
container_reference<self_type> (m), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator1 (const iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator1 &operator ++ () {
Expand Down Expand Up @@ -1911,6 +1941,11 @@ namespace boost { namespace numeric {
const_iterator2 (const iterator2 &it):
container_const_reference<self_type> (it ()), it_ (it.it_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator2 (const const_iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
Expand Down Expand Up @@ -2089,6 +2124,11 @@ namespace boost { namespace numeric {
iterator2 (self_type &m, const subiterator_type &it):
container_reference<self_type> (m), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator2 (const iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator2 &operator ++ () {
Expand Down Expand Up @@ -2671,6 +2711,11 @@ namespace boost { namespace numeric {
const_iterator1 (const iterator1 &it):
container_const_reference<self_type> (it ()), i_ (it.i_), j_ (it.j_), it_ (it.it_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator1 (const const_iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator1 &operator ++ () {
Expand Down Expand Up @@ -2866,6 +2911,11 @@ namespace boost { namespace numeric {
iterator1 (self_type &m, size_type i, size_type j, const subiterator_type &it):
container_reference<self_type> (m), i_ (i), j_ (j), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator1 (const iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator1 &operator ++ () {
Expand Down Expand Up @@ -3028,6 +3078,11 @@ namespace boost { namespace numeric {
const_iterator2 (const iterator2 &it):
container_const_reference<self_type> (it ()), i_ (it.i_), j_ (it.j_), it_ (it.it_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator2 (const const_iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
Expand Down Expand Up @@ -3223,6 +3278,11 @@ namespace boost { namespace numeric {
iterator2 (self_type &m, size_type i, size_type j, const subiterator_type &it):
container_reference<self_type> (m), i_ (i), j_ (j), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator2 (const iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator2 &operator ++ () {
Expand Down Expand Up @@ -3580,6 +3640,11 @@ namespace boost { namespace numeric {
const_iterator1 (const self_type &m):
container_const_reference<self_type> (m) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator1 (const const_iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator1 &operator ++ () {
Expand Down Expand Up @@ -3726,6 +3791,11 @@ namespace boost { namespace numeric {
const_iterator2 (const self_type &m):
container_const_reference<self_type> (m) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator2 (const const_iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
Expand Down Expand Up @@ -4223,6 +4293,11 @@ namespace boost { namespace numeric {
const_iterator2 (const self_type &m, const const_subiterator_type &it):
container_const_reference<self_type> (m), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator2 (const const_iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
Expand Down Expand Up @@ -4565,6 +4640,11 @@ namespace boost { namespace numeric {
const_iterator1 (const scalar_matrix &m, const const_subiterator_type &it1, const const_subiterator_type &it2):
container_const_reference<scalar_matrix> (m), it1_ (it1), it2_ (it2) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator1 (const const_iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator1 &operator ++ () {
Expand Down Expand Up @@ -4746,6 +4826,11 @@ namespace boost { namespace numeric {
const_iterator2 (const scalar_matrix &m, const const_subiterator_type &it1, const const_subiterator_type &it2):
container_const_reference<scalar_matrix> (m), it1_ (it1), it2_ (it2) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator2 (const const_iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
Expand Down Expand Up @@ -5304,6 +5389,11 @@ namespace boost { namespace numeric {
const_iterator1 (const iterator1 &it):
container_const_reference<self_type> (it ()), it_ (it.it_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator1 (const const_iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator1 &operator ++ () {
Expand Down Expand Up @@ -5483,6 +5573,11 @@ namespace boost { namespace numeric {
iterator1 (self_type &m, const subiterator_type &it):
container_reference<self_type> (m), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator1 (const iterator1&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator1 &operator ++ () {
Expand Down Expand Up @@ -5628,6 +5723,11 @@ namespace boost { namespace numeric {
const_iterator2 (const iterator2 &it):
container_const_reference<self_type> (it ()), it_ (it.it_) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
const_iterator2 (const const_iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
const_iterator2 &operator ++ () {
Expand Down Expand Up @@ -5806,6 +5906,11 @@ namespace boost { namespace numeric {
iterator2 (self_type &m, const subiterator_type &it):
container_reference<self_type> (m), it_ (it) {}

#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
BOOST_UBLAS_INLINE
iterator2 (const iterator2&) = default;
#endif

// Arithmetic
BOOST_UBLAS_INLINE
iterator2 &operator ++ () {
Expand Down
Loading