Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$
prog.cc: In function 'void test(std::vector<TestClass>)':
prog.cc:15:37: warning: unused parameter 'arg' [-Wunused-parameter]
void test( std::vector< TestClass > arg )
^~~
prog.cc: In function 'int main(int, char**)':
prog.cc:19:15: warning: unused parameter 'argc' [-Wunused-parameter]
int main( int argc, char **argv )
^~~~
prog.cc:19:28: warning: unused parameter 'argv' [-Wunused-parameter]
int main( int argc, char **argv )
^~~~
In file included from /opt/wandbox/gcc-head/include/c++/8.0.0/vector:62:0,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_construct.h: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = TestClass; _Args = {const TestClass&}]':
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_uninitialized.h:83:18: required from 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const TestClass*; _ForwardIterator = TestClass*; bool _TrivialValueTypes = false]'
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_uninitialized.h:134:15: required from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const TestClass*; _ForwardIterator = TestClass*]'
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_uninitialized.h:289:37: required from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = const TestClass*; _ForwardIterator = TestClass*; _Tp = TestClass]'
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_vector.h:1326:33: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = const TestClass*; _Tp = TestClass; _Alloc = std::allocator<TestClass>]'
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_vector.h:387:21: required from 'std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = TestClass; _Alloc = std::allocator<TestClass>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<TestClass>]'
prog.cc:22:36: required from here
/opt/wandbox/gcc-head/include/c++/8.0.0/bits/stl_construct.h:75:7: error: use of deleted function 'TestClass::TestClass(const TestClass&)'
{ ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:8:5: note: declared here
TestClass( TestClass const & ) = delete;
^~~~~~~~~
Exit Code:
1