1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/usr/include/c++/10.2.0/bits/stl_algobase.h: In instantiation of ‘static constexpr _OI std::__copy_move<true, false, std::random_access_iterator_tag>::__copy_m(_II, _II, _OI) [with _II = Other*; _OI = Other*]’:
/usr/include/c++/10.2.0/bits/stl_algobase.h:469:12: required from ‘constexpr _OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = Other*; _OI = Other*]’
/usr/include/c++/10.2.0/bits/stl_algobase.h:506:42: required from ‘constexpr _OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = true; _II = Other*; _OI = Other*]’
/usr/include/c++/10.2.0/bits/stl_algobase.h:514:31: required from ‘constexpr _OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = true; _II = __gnu_cxx::__normal_iterator<Other*, std::vector<Other> >; _OI = __gnu_cxx::__normal_iterator<Other*, std::vector<Other> >]’
/usr/include/c++/10.2.0/bits/stl_algobase.h:601:38: required from ‘constexpr _OI std::move(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<Other*, std::vector<Other> >; _OI = __gnu_cxx::__normal_iterator<Other*, std::vector<Other> >]’
/usr/include/c++/10.2.0/bits/vector.tcc:175:2: required from ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = Other; _Alloc = std::allocator<Other>; std::vector<_Tp, _Alloc>::iterator = std::vector<Other>::iterator]’
/usr/include/c++/10.2.0/bits/stl_vector.h:1431:24: required from ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::const_iterator) [with _Tp = Other; _Alloc = std::allocator<Other>; std::vector<_Tp, _Alloc>::iterator = std::vector<Other>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<Other>::const_iterator]’
/home/user/CLionProjects/Reverb/main.cpp:13:21: required from here
/usr/include/c++/10.2.0/bits/stl_algobase.h:400:18: error: use of deleted function ‘Other& Other::operator=(Other&&)’
400 | *__result = std::move(*__first);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/user/CLionProjects/Reverb/main.cpp:4:7: note: ‘Other& Other::operator=(Other&&)’ is implicitly deleted because the default definition would be ill-formed:
4 | class Other {
| ^~~~~
/home/user/CLionProjects/Reverb/main.cpp:4:7: error: non-static reference member ‘std::vector<Other>& Other::ref’, cannot use default assignment operator
In file included from /usr/include/c++/10.2.0/vector:60,
from /home/user/CLionProjects/Reverb/main.cpp:1:
/usr/include/c++/10.2.0/bits/stl_algobase.h: In instantiation of ‘static constexpr _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*) [with _Tp = Other; bool _IsMove = true]’:
/usr/include/c++/10.2.0/bits/stl_algobase.h:472:30: required from ‘constexpr _OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = Other*; _OI = Other*]’
/usr/include/c++/10.2.0/bits/stl_algobase.h:506:42: required from ‘constexpr _OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = true; _II = Other*; _OI = Other*]’
/usr/include/c++/10.2.0/bits/stl_algobase.h:514:31: required from ‘constexpr _OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = true; _II = __gnu_cxx::__normal_iterator<Other*, std::vector<Other> >; _OI = __gnu_cxx::__normal_iterator<Other*, std::vector<Other> >]’
/usr/include/c++/10.2.0/bits/stl_algobase.h:601:38: required from ‘constexpr _OI std::move(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<Other*, std::vector<Other> >; _OI = __gnu_cxx::__normal_iterator<Other*, std::vector<Other> >]’
/usr/include/c++/10.2.0/bits/vector.tcc:175:2: required from ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = Other; _Alloc = std::allocator<Other>; std::vector<_Tp, _Alloc>::iterator = std::vector<Other>::iterator]’
/usr/include/c++/10.2.0/bits/stl_vector.h:1431:24: required from ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::const_iterator) [with _Tp = Other; _Alloc = std::allocator<Other>; std::vector<_Tp, _Alloc>::iterator = std::vector<Other>::iterator; std::vector<_Tp, _Alloc>::const_iterator = std::vector<Other>::const_iterator]’
/home/user/CLionProjects/Reverb/main.cpp:13:21: required from here
/usr/include/c++/10.2.0/bits/stl_algobase.h:422:39: error: static assertion failed: type is not assignable
422 | static_assert( __assignable::type::value, "type is not assignable" );
| ^~~~~
|