Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$ In file included from prog.cc:1:
In file included from /opt/wandbox/clang-head/include/c++/v1/iostream:38:
In file included from /opt/wandbox/clang-head/include/c++/v1/ios:216:
In file included from /opt/wandbox/clang-head/include/c++/v1/__locale:15:
In file included from /opt/wandbox/clang-head/include/c++/v1/string:484:
In file included from /opt/wandbox/clang-head/include/c++/v1/string_view:176:
In file included from /opt/wandbox/clang-head/include/c++/v1/__string:56:
In file included from /opt/wandbox/clang-head/include/c++/v1/algorithm:644:
/opt/wandbox/clang-head/include/c++/v1/memory:1805:31: error: call to deleted constructor of 'Container'
::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/memory:1715:18: note: in instantiation of function template specialization 'std::__1::allocator<Container>::construct<Container, Container>' requested here
{__a.construct(__p, _VSTD::forward<_Args>(__args)...);}
^
/opt/wandbox/clang-head/include/c++/v1/memory:1561:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<Container> >::__construct<Container, Container>' requested here
{__construct(__has_construct<allocator_type, _Tp*, _Args...>(),
^
/opt/wandbox/clang-head/include/c++/v1/vector:1612:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<Container> >::construct<Container, Container>' requested here
__alloc_traits::construct(this->__alloc(),
^
prog.cc:50:21: note: in instantiation of member function 'std::__1::vector<Container, std::__1::allocator<Container> >::push_back' requested here
vecOfContainers.push_back(getContainer());
^
prog.cc:34:5: note: 'Container' has been explicitly marked deleted here
Container(Container&&) = delete;
^
1 error generated.
Exit Code:
1