Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
In file included from /opt/wandbox/gcc-7.2.0/include/c++/7.2.0/memory:64:0,
from prog.cc:2:
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_construct.h: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = X; _Args = {const X&}]':
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_uninitialized.h:83:18: required from 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const X*, std::vector<X, std::allocator<X> > >; _ForwardIterator = X*; bool _TrivialValueTypes = false]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_uninitialized.h:134:15: required from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const X*, std::vector<X, std::allocator<X> > >; _ForwardIterator = X*]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_uninitialized.h:289:37: required from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const X*, std::vector<X, std::allocator<X> > >; _ForwardIterator = X*; _Tp = X]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_vector.h:331:31: required from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = X; _Alloc = std::allocator<X>]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_construct.h:75:7: required from 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = std::vector<X, std::allocator<X> >; _Args = {const std::vector<X, std::allocator<X> >&}]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_uninitialized.h:210:18: required from 'static _ForwardIterator std::__uninitialized_fill_n<_TrivialValueType>::__uninit_fill_n(_ForwardIterator, _Size, const _Tp&) [with _ForwardIterator = std::vector<X, std::allocator<X> >*; _Size = long unsigned int; _Tp = std::vector<X, std::allocator<X> >; bool _TrivialValueType = false]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_uninitialized.h:255:17: required from '_ForwardIterator std::uninitialized_fill_n(_ForwardIterator, _Size, const _Tp&) [with _ForwardIterator = std::vector<X, std::allocator<X> >*; _Size = long unsigned int; _Tp = std::vector<X, std::allocator<X> >]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_uninitialized.h:366:39: required from '_ForwardIterator std::__uninitialized_fill_n_a(_ForwardIterator, _Size, const _Tp&, std::allocator<_Tp2>&) [with _ForwardIterator = std::vector<X, std::allocator<X> >*; _Size = long unsigned int; _Tp = std::vector<X, std::allocator<X> >; _Tp2 = std::vector<X, std::allocator<X> >]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_vector.h:1337:33: required from 'void std::vector<_Tp, _Alloc>::_M_fill_initialize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = std::vector<X, std::allocator<X> >; _Alloc = std::allocator<std::vector<X, std::allocator<X> > >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<X, std::allocator<X> >]'
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_vector.h:298:27: required from 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::vector<X, std::allocator<X> >; _Alloc = std::allocator<std::vector<X, std::allocator<X> > >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<X, std::allocator<X> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::vector<X, std::allocator<X> > >]'
prog.cc:84:90: required from here
/opt/wandbox/gcc-7.2.0/include/c++/7.2.0/bits/stl_construct.h:75:7: error: use of deleted function 'X::X(const X&)'
{ ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:45:5: note: declared here
X(const X&) = delete;
^
Exit Code:
1