In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33, from /usr/include/c++/11/bits/allocator.h:46, from /usr/include/c++/11/string:41, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from ../ServerCore/includes:1, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_RCPT.h:4, from __SMTP_RCPT.cpp:1: /usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail]’: /usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/ext/new_allocator.h:162:11: error: use of deleted function ‘mail::SendMail::SendMail(const mail::SendMail&)’ 162 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from SMTPServer.h:23, from __SMTP_RCPT.cpp:2: SendMail.h:14:10: note: ‘mail::SendMail::SendMail(const mail::SendMail&)’ is implicitly deleted because the default definition would be ill-formed: 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ SendMail.h:14:10: error: use of deleted function ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_RCPT.cpp:2: ../ServerCore/TCPSession2.h:26:10: note: ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ is implicitly deleted because the default definition would be ill-formed: 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ In file included from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_RCPT.h:4, from __SMTP_RCPT.cpp:1: ../ServerCore/TCPSocket.h:20:10: note: ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ is implicitly deleted because the default definition would be ill-formed: 20 | class TCPSocket : public Socket { | ^~~~~~~~~ ../ServerCore/TCPSocket.h:20:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_RCPT.h:4, from __SMTP_RCPT.cpp:1: ../ServerCore/Socket.h:34:10: note: ‘core::Socket::Socket(const core::Socket&)’ is implicitly deleted because the default definition would be ill-formed: 34 | class Socket { | ^~~~~~ ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_RCPT.h:4, from __SMTP_RCPT.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_RCPT.h:4, from __SMTP_RCPT.cpp:1: ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 34 | class Socket { | ^~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_RCPT.h:4, from __SMTP_RCPT.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_RCPT.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from ../ServerCore/includes:13, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_RCPT.h:4, from __SMTP_RCPT.cpp:1: /usr/include/c++/11/sstream:1057:7: note: declared here 1057 | basic_stringstream(const basic_stringstream&) = delete; | ^~~~~~~~~~~~~~~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_RCPT.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_RCPT.h:4, from __SMTP_RCPT.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SMTPServer.h:23, from __SMTP_RCPT.cpp:2: SendMail.h:14:10: error: use of deleted function ‘core::Timer::Timer(const core::Timer&)’ 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ In file included from ../ServerCore/TCPSession2.h:5, from SendMail.h:6, from SMTPServer.h:23, from __SMTP_RCPT.cpp:2: ../ServerCore/Timer.h:18:10: note: ‘core::Timer::Timer(const core::Timer&)’ is implicitly deleted because the default definition would be ill-formed: 18 | class Timer : Socket { | ^~~~~ ../ServerCore/Timer.h:18:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33, from /usr/include/c++/11/bits/allocator.h:46, from /usr/include/c++/11/string:41, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from ../ServerCore/includes:1, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EXPN.h:4, from __SMTP_EXPN.cpp:1: /usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail]’: /usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/ext/new_allocator.h:162:11: error: use of deleted function ‘mail::SendMail::SendMail(const mail::SendMail&)’ 162 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from SMTPServer.h:23, from __SMTP_EXPN.cpp:2: SendMail.h:14:10: note: ‘mail::SendMail::SendMail(const mail::SendMail&)’ is implicitly deleted because the default definition would be ill-formed: 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ SendMail.h:14:10: error: use of deleted function ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_EXPN.cpp:2: ../ServerCore/TCPSession2.h:26:10: note: ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ is implicitly deleted because the default definition would be ill-formed: 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ In file included from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_EXPN.h:4, from __SMTP_EXPN.cpp:1: ../ServerCore/TCPSocket.h:20:10: note: ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ is implicitly deleted because the default definition would be ill-formed: 20 | class TCPSocket : public Socket { | ^~~~~~~~~ ../ServerCore/TCPSocket.h:20:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_EXPN.h:4, from __SMTP_EXPN.cpp:1: ../ServerCore/Socket.h:34:10: note: ‘core::Socket::Socket(const core::Socket&)’ is implicitly deleted because the default definition would be ill-formed: 34 | class Socket { | ^~~~~~ ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EXPN.h:4, from __SMTP_EXPN.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_EXPN.h:4, from __SMTP_EXPN.cpp:1: ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 34 | class Socket { | ^~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EXPN.h:4, from __SMTP_EXPN.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_EXPN.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from ../ServerCore/includes:13, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EXPN.h:4, from __SMTP_EXPN.cpp:1: /usr/include/c++/11/sstream:1057:7: note: declared here 1057 | basic_stringstream(const basic_stringstream&) = delete; | ^~~~~~~~~~~~~~~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_EXPN.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EXPN.h:4, from __SMTP_EXPN.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SMTPServer.h:23, from __SMTP_EXPN.cpp:2: SendMail.h:14:10: error: use of deleted function ‘core::Timer::Timer(const core::Timer&)’ 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ In file included from ../ServerCore/TCPSession2.h:5, from SendMail.h:6, from SMTPServer.h:23, from __SMTP_EXPN.cpp:2: ../ServerCore/Timer.h:18:10: note: ‘core::Timer::Timer(const core::Timer&)’ is implicitly deleted because the default definition would be ill-formed: 18 | class Timer : Socket { | ^~~~~ ../ServerCore/Timer.h:18:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from /usr/include/c++/11/vector:66, from ../ServerCore/includes:2, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_RCPT.h:4, from __SMTP_RCPT.cpp:1: /usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*]’: /usr/include/c++/11/bits/stl_uninitialized.h:333:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*; _Tp = mail::SendMail]’ /usr/include/c++/11/bits/stl_uninitialized.h:355:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mail::SendMail*; _ForwardIterator = mail::SendMail*; _Allocator = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:474:3: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::iterator = std::vector::iterator]’ /usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/bits/stl_uninitialized.h:138:72: error: static assertion failed: result type must be constructible from value type of input range 138 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, | ^~~~~ /usr/include/c++/11/bits/stl_uninitialized.h:138:72: note: ‘std::integral_constant::value’ evaluates to false In file included from /usr/include/c++/11/vector:66, from ../ServerCore/includes:2, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EXPN.h:4, from __SMTP_EXPN.cpp:1: /usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*]’: /usr/include/c++/11/bits/stl_uninitialized.h:333:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*; _Tp = mail::SendMail]’ /usr/include/c++/11/bits/stl_uninitialized.h:355:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mail::SendMail*; _ForwardIterator = mail::SendMail*; _Allocator = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:474:3: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::iterator = std::vector::iterator]’ /usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/bits/stl_uninitialized.h:138:72: error: static assertion failed: result type must be constructible from value type of input range 138 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, | ^~~~~ /usr/include/c++/11/bits/stl_uninitialized.h:138:72: note: ‘std::integral_constant::value’ evaluates to false In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33, from /usr/include/c++/11/bits/allocator.h:46, from /usr/include/c++/11/string:41, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from ../ServerCore/includes:1, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELO.h:4, from __SMTP_HELO.cpp:1: /usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail]’: /usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/ext/new_allocator.h:162:11: error: use of deleted function ‘mail::SendMail::SendMail(const mail::SendMail&)’ 162 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from SMTPServer.h:23, from __SMTP_HELO.cpp:2: SendMail.h:14:10: note: ‘mail::SendMail::SendMail(const mail::SendMail&)’ is implicitly deleted because the default definition would be ill-formed: 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ SendMail.h:14:10: error: use of deleted function ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_HELO.cpp:2: ../ServerCore/TCPSession2.h:26:10: note: ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ is implicitly deleted because the default definition would be ill-formed: 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ In file included from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_HELO.h:4, from __SMTP_HELO.cpp:1: ../ServerCore/TCPSocket.h:20:10: note: ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ is implicitly deleted because the default definition would be ill-formed: 20 | class TCPSocket : public Socket { | ^~~~~~~~~ ../ServerCore/TCPSocket.h:20:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_HELO.h:4, from __SMTP_HELO.cpp:1: ../ServerCore/Socket.h:34:10: note: ‘core::Socket::Socket(const core::Socket&)’ is implicitly deleted because the default definition would be ill-formed: 34 | class Socket { | ^~~~~~ ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELO.h:4, from __SMTP_HELO.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_HELO.h:4, from __SMTP_HELO.cpp:1: ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 34 | class Socket { | ^~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELO.h:4, from __SMTP_HELO.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_HELO.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from ../ServerCore/includes:13, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELO.h:4, from __SMTP_HELO.cpp:1: /usr/include/c++/11/sstream:1057:7: note: declared here 1057 | basic_stringstream(const basic_stringstream&) = delete; | ^~~~~~~~~~~~~~~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_HELO.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELO.h:4, from __SMTP_HELO.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SMTPServer.h:23, from __SMTP_HELO.cpp:2: SendMail.h:14:10: error: use of deleted function ‘core::Timer::Timer(const core::Timer&)’ 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ In file included from ../ServerCore/TCPSession2.h:5, from SendMail.h:6, from SMTPServer.h:23, from __SMTP_HELO.cpp:2: ../ServerCore/Timer.h:18:10: note: ‘core::Timer::Timer(const core::Timer&)’ is implicitly deleted because the default definition would be ill-formed: 18 | class Timer : Socket { | ^~~~~ ../ServerCore/Timer.h:18:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33, from /usr/include/c++/11/bits/allocator.h:46, from /usr/include/c++/11/string:41, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from ../ServerCore/includes:1, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_AUTH.h:4, from __SMTP_AUTH.cpp:1: /usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail]’: /usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/ext/new_allocator.h:162:11: error: use of deleted function ‘mail::SendMail::SendMail(const mail::SendMail&)’ 162 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from SMTPServer.h:23, from __SMTP_AUTH.cpp:3: SendMail.h:14:10: note: ‘mail::SendMail::SendMail(const mail::SendMail&)’ is implicitly deleted because the default definition would be ill-formed: 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ SendMail.h:14:10: error: use of deleted function ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_AUTH.cpp:3: ../ServerCore/TCPSession2.h:26:10: note: ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ is implicitly deleted because the default definition would be ill-formed: 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ In file included from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_AUTH.h:4, from __SMTP_AUTH.cpp:1: ../ServerCore/TCPSocket.h:20:10: note: ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ is implicitly deleted because the default definition would be ill-formed: 20 | class TCPSocket : public Socket { | ^~~~~~~~~ ../ServerCore/TCPSocket.h:20:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_AUTH.h:4, from __SMTP_AUTH.cpp:1: ../ServerCore/Socket.h:34:10: note: ‘core::Socket::Socket(const core::Socket&)’ is implicitly deleted because the default definition would be ill-formed: 34 | class Socket { | ^~~~~~ ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_AUTH.h:4, from __SMTP_AUTH.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_AUTH.h:4, from __SMTP_AUTH.cpp:1: ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 34 | class Socket { | ^~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_AUTH.h:4, from __SMTP_AUTH.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_AUTH.cpp:3: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from ../ServerCore/includes:13, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_AUTH.h:4, from __SMTP_AUTH.cpp:1: /usr/include/c++/11/sstream:1057:7: note: declared here 1057 | basic_stringstream(const basic_stringstream&) = delete; | ^~~~~~~~~~~~~~~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_AUTH.cpp:3: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_AUTH.h:4, from __SMTP_AUTH.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SMTPServer.h:23, from __SMTP_AUTH.cpp:3: SendMail.h:14:10: error: use of deleted function ‘core::Timer::Timer(const core::Timer&)’ 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ In file included from ../ServerCore/TCPSession2.h:5, from SendMail.h:6, from SMTPServer.h:23, from __SMTP_AUTH.cpp:3: ../ServerCore/Timer.h:18:10: note: ‘core::Timer::Timer(const core::Timer&)’ is implicitly deleted because the default definition would be ill-formed: 18 | class Timer : Socket { | ^~~~~ ../ServerCore/Timer.h:18:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from /usr/include/c++/11/vector:66, from ../ServerCore/includes:2, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_AUTH.h:4, from __SMTP_AUTH.cpp:1: /usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*]’: /usr/include/c++/11/bits/stl_uninitialized.h:333:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*; _Tp = mail::SendMail]’ /usr/include/c++/11/bits/stl_uninitialized.h:355:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mail::SendMail*; _ForwardIterator = mail::SendMail*; _Allocator = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:474:3: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::iterator = std::vector::iterator]’ /usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/bits/stl_uninitialized.h:138:72: error: static assertion failed: result type must be constructible from value type of input range 138 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, | ^~~~~ /usr/include/c++/11/bits/stl_uninitialized.h:138:72: note: ‘std::integral_constant::value’ evaluates to false In file included from /usr/include/c++/11/vector:66, from ../ServerCore/includes:2, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELO.h:4, from __SMTP_HELO.cpp:1: /usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*]’: /usr/include/c++/11/bits/stl_uninitialized.h:333:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*; _Tp = mail::SendMail]’ /usr/include/c++/11/bits/stl_uninitialized.h:355:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mail::SendMail*; _ForwardIterator = mail::SendMail*; _Allocator = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:474:3: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::iterator = std::vector::iterator]’ /usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/bits/stl_uninitialized.h:138:72: error: static assertion failed: result type must be constructible from value type of input range 138 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, | ^~~~~ /usr/include/c++/11/bits/stl_uninitialized.h:138:72: note: ‘std::integral_constant::value’ evaluates to false In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33, from /usr/include/c++/11/bits/allocator.h:46, from /usr/include/c++/11/string:41, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from ../ServerCore/includes:1, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_QUIT.h:4, from __SMTP_QUIT.cpp:1: /usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail]’: /usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/ext/new_allocator.h:162:11: error: use of deleted function ‘mail::SendMail::SendMail(const mail::SendMail&)’ 162 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from SMTPServer.h:23, from __SMTP_QUIT.cpp:3: SendMail.h:14:10: note: ‘mail::SendMail::SendMail(const mail::SendMail&)’ is implicitly deleted because the default definition would be ill-formed: 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ SendMail.h:14:10: error: use of deleted function ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_QUIT.cpp:3: ../ServerCore/TCPSession2.h:26:10: note: ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ is implicitly deleted because the default definition would be ill-formed: 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ In file included from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_QUIT.h:4, from __SMTP_QUIT.cpp:1: ../ServerCore/TCPSocket.h:20:10: note: ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ is implicitly deleted because the default definition would be ill-formed: 20 | class TCPSocket : public Socket { | ^~~~~~~~~ ../ServerCore/TCPSocket.h:20:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_QUIT.h:4, from __SMTP_QUIT.cpp:1: ../ServerCore/Socket.h:34:10: note: ‘core::Socket::Socket(const core::Socket&)’ is implicitly deleted because the default definition would be ill-formed: 34 | class Socket { | ^~~~~~ ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_QUIT.h:4, from __SMTP_QUIT.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_QUIT.h:4, from __SMTP_QUIT.cpp:1: ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 34 | class Socket { | ^~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_QUIT.h:4, from __SMTP_QUIT.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_QUIT.cpp:3: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from ../ServerCore/includes:13, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_QUIT.h:4, from __SMTP_QUIT.cpp:1: /usr/include/c++/11/sstream:1057:7: note: declared here 1057 | basic_stringstream(const basic_stringstream&) = delete; | ^~~~~~~~~~~~~~~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_QUIT.cpp:3: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_QUIT.h:4, from __SMTP_QUIT.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SMTPServer.h:23, from __SMTP_QUIT.cpp:3: SendMail.h:14:10: error: use of deleted function ‘core::Timer::Timer(const core::Timer&)’ 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ In file included from ../ServerCore/TCPSession2.h:5, from SendMail.h:6, from SMTPServer.h:23, from __SMTP_QUIT.cpp:3: ../ServerCore/Timer.h:18:10: note: ‘core::Timer::Timer(const core::Timer&)’ is implicitly deleted because the default definition would be ill-formed: 18 | class Timer : Socket { | ^~~~~ ../ServerCore/Timer.h:18:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from /usr/include/c++/11/vector:66, from ../ServerCore/includes:2, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_QUIT.h:4, from __SMTP_QUIT.cpp:1: /usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*]’: /usr/include/c++/11/bits/stl_uninitialized.h:333:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*; _Tp = mail::SendMail]’ /usr/include/c++/11/bits/stl_uninitialized.h:355:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mail::SendMail*; _ForwardIterator = mail::SendMail*; _Allocator = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:474:3: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::iterator = std::vector::iterator]’ /usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/bits/stl_uninitialized.h:138:72: error: static assertion failed: result type must be constructible from value type of input range 138 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, | ^~~~~ /usr/include/c++/11/bits/stl_uninitialized.h:138:72: note: ‘std::integral_constant::value’ evaluates to false In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33, from /usr/include/c++/11/bits/allocator.h:46, from /usr/include/c++/11/string:41, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from ../ServerCore/includes:1, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EHLO.h:4, from __SMTP_EHLO.cpp:1: /usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail]’: /usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/ext/new_allocator.h:162:11: error: use of deleted function ‘mail::SendMail::SendMail(const mail::SendMail&)’ 162 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from SMTPServer.h:23, from __SMTP_EHLO.cpp:2: SendMail.h:14:10: note: ‘mail::SendMail::SendMail(const mail::SendMail&)’ is implicitly deleted because the default definition would be ill-formed: 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ SendMail.h:14:10: error: use of deleted function ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_EHLO.cpp:2: ../ServerCore/TCPSession2.h:26:10: note: ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ is implicitly deleted because the default definition would be ill-formed: 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ In file included from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_EHLO.h:4, from __SMTP_EHLO.cpp:1: ../ServerCore/TCPSocket.h:20:10: note: ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ is implicitly deleted because the default definition would be ill-formed: 20 | class TCPSocket : public Socket { | ^~~~~~~~~ ../ServerCore/TCPSocket.h:20:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_EHLO.h:4, from __SMTP_EHLO.cpp:1: ../ServerCore/Socket.h:34:10: note: ‘core::Socket::Socket(const core::Socket&)’ is implicitly deleted because the default definition would be ill-formed: 34 | class Socket { | ^~~~~~ ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EHLO.h:4, from __SMTP_EHLO.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_EHLO.h:4, from __SMTP_EHLO.cpp:1: ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 34 | class Socket { | ^~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EHLO.h:4, from __SMTP_EHLO.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_EHLO.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from ../ServerCore/includes:13, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EHLO.h:4, from __SMTP_EHLO.cpp:1: /usr/include/c++/11/sstream:1057:7: note: declared here 1057 | basic_stringstream(const basic_stringstream&) = delete; | ^~~~~~~~~~~~~~~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_EHLO.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EHLO.h:4, from __SMTP_EHLO.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SMTPServer.h:23, from __SMTP_EHLO.cpp:2: SendMail.h:14:10: error: use of deleted function ‘core::Timer::Timer(const core::Timer&)’ 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ In file included from ../ServerCore/TCPSession2.h:5, from SendMail.h:6, from SMTPServer.h:23, from __SMTP_EHLO.cpp:2: ../ServerCore/Timer.h:18:10: note: ‘core::Timer::Timer(const core::Timer&)’ is implicitly deleted because the default definition would be ill-formed: 18 | class Timer : Socket { | ^~~~~ ../ServerCore/Timer.h:18:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from /usr/include/c++/11/vector:66, from ../ServerCore/includes:2, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_EHLO.h:4, from __SMTP_EHLO.cpp:1: /usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*]’: /usr/include/c++/11/bits/stl_uninitialized.h:333:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*; _Tp = mail::SendMail]’ /usr/include/c++/11/bits/stl_uninitialized.h:355:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mail::SendMail*; _ForwardIterator = mail::SendMail*; _Allocator = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:474:3: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::iterator = std::vector::iterator]’ /usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/bits/stl_uninitialized.h:138:72: error: static assertion failed: result type must be constructible from value type of input range 138 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, | ^~~~~ /usr/include/c++/11/bits/stl_uninitialized.h:138:72: note: ‘std::integral_constant::value’ evaluates to false In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33, from /usr/include/c++/11/bits/allocator.h:46, from /usr/include/c++/11/string:41, from main.cpp:1: /usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail]’: /usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/ext/new_allocator.h:162:11: error: use of deleted function ‘mail::SendMail::SendMail(const mail::SendMail&)’ 162 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from SMTPServer.h:23, from main.cpp:9: SendMail.h:14:10: note: ‘mail::SendMail::SendMail(const mail::SendMail&)’ is implicitly deleted because the default definition would be ill-formed: 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ SendMail.h:14:10: error: use of deleted function ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ In file included from SendMail.h:6, from SMTPServer.h:23, from main.cpp:9: ../ServerCore/TCPSession2.h:26:10: note: ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ is implicitly deleted because the default definition would be ill-formed: 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ In file included from ../ServerCore/TCPSession.h:4, from ../ServerCore/Thread.h:7, from ../ServerCore/EPoll.h:6, from main.cpp:2: ../ServerCore/TCPSocket.h:20:10: note: ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ is implicitly deleted because the default definition would be ill-formed: 20 | class TCPSocket : public Socket { | ^~~~~~~~~ ../ServerCore/TCPSocket.h:20:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from ../ServerCore/EPoll.h:5, from main.cpp:2: ../ServerCore/Socket.h:34:10: note: ‘core::Socket::Socket(const core::Socket&)’ is implicitly deleted because the default definition would be ill-formed: 34 | class Socket { | ^~~~~~ ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ In file included from /usr/include/c++/11/mutex:43, from ../CoreUtils/Log.h:6, from ../ServerCore/EPoll.h:4, from main.cpp:2: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from ../ServerCore/EPoll.h:5, from main.cpp:2: ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 34 | class Socket { | ^~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../CoreUtils/Log.h:6, from ../ServerCore/EPoll.h:4, from main.cpp:2: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from main.cpp:9: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from ../CoreUtils/Log.h:8, from ../ServerCore/EPoll.h:4, from main.cpp:2: /usr/include/c++/11/sstream:1057:7: note: declared here 1057 | basic_stringstream(const basic_stringstream&) = delete; | ^~~~~~~~~~~~~~~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from main.cpp:9: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../CoreUtils/Log.h:6, from ../ServerCore/EPoll.h:4, from main.cpp:2: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SMTPServer.h:23, from main.cpp:9: SendMail.h:14:10: error: use of deleted function ‘core::Timer::Timer(const core::Timer&)’ 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ In file included from ../ServerCore/TCPSession2.h:5, from SendMail.h:6, from SMTPServer.h:23, from main.cpp:9: ../ServerCore/Timer.h:18:10: note: ‘core::Timer::Timer(const core::Timer&)’ is implicitly deleted because the default definition would be ill-formed: 18 | class Timer : Socket { | ^~~~~ ../ServerCore/Timer.h:18:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from /usr/include/c++/11/vector:66, from ../CoreUtils/ZString.h:7, from ../CoreUtils/File.h:6, from ../CoreUtils/Log.h:4, from ../ServerCore/EPoll.h:4, from main.cpp:2: /usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*]’: /usr/include/c++/11/bits/stl_uninitialized.h:333:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*; _Tp = mail::SendMail]’ /usr/include/c++/11/bits/stl_uninitialized.h:355:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mail::SendMail*; _ForwardIterator = mail::SendMail*; _Allocator = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:474:3: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::iterator = std::vector::iterator]’ /usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/bits/stl_uninitialized.h:138:72: error: static assertion failed: result type must be constructible from value type of input range 138 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, | ^~~~~ /usr/include/c++/11/bits/stl_uninitialized.h:138:72: note: ‘std::integral_constant::value’ evaluates to false In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33, from /usr/include/c++/11/bits/allocator.h:46, from /usr/include/c++/11/string:41, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from ../ServerCore/includes:1, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELP.h:4, from __SMTP_HELP.cpp:1: /usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail]’: /usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/ext/new_allocator.h:162:11: error: use of deleted function ‘mail::SendMail::SendMail(const mail::SendMail&)’ 162 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from SMTPServer.h:23, from __SMTP_HELP.cpp:2: SendMail.h:14:10: note: ‘mail::SendMail::SendMail(const mail::SendMail&)’ is implicitly deleted because the default definition would be ill-formed: 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ SendMail.h:14:10: error: use of deleted function ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_HELP.cpp:2: ../ServerCore/TCPSession2.h:26:10: note: ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ is implicitly deleted because the default definition would be ill-formed: 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ In file included from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_HELP.h:4, from __SMTP_HELP.cpp:1: ../ServerCore/TCPSocket.h:20:10: note: ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ is implicitly deleted because the default definition would be ill-formed: 20 | class TCPSocket : public Socket { | ^~~~~~~~~ ../ServerCore/TCPSocket.h:20:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_HELP.h:4, from __SMTP_HELP.cpp:1: ../ServerCore/Socket.h:34:10: note: ‘core::Socket::Socket(const core::Socket&)’ is implicitly deleted because the default definition would be ill-formed: 34 | class Socket { | ^~~~~~ ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELP.h:4, from __SMTP_HELP.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_HELP.h:4, from __SMTP_HELP.cpp:1: ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 34 | class Socket { | ^~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELP.h:4, from __SMTP_HELP.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_HELP.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from ../ServerCore/includes:13, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELP.h:4, from __SMTP_HELP.cpp:1: /usr/include/c++/11/sstream:1057:7: note: declared here 1057 | basic_stringstream(const basic_stringstream&) = delete; | ^~~~~~~~~~~~~~~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_HELP.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELP.h:4, from __SMTP_HELP.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SMTPServer.h:23, from __SMTP_HELP.cpp:2: SendMail.h:14:10: error: use of deleted function ‘core::Timer::Timer(const core::Timer&)’ 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ In file included from ../ServerCore/TCPSession2.h:5, from SendMail.h:6, from SMTPServer.h:23, from __SMTP_HELP.cpp:2: ../ServerCore/Timer.h:18:10: note: ‘core::Timer::Timer(const core::Timer&)’ is implicitly deleted because the default definition would be ill-formed: 18 | class Timer : Socket { | ^~~~~ ../ServerCore/Timer.h:18:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from /usr/include/c++/11/vector:66, from ../ServerCore/includes:2, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_HELP.h:4, from __SMTP_HELP.cpp:1: /usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*]’: /usr/include/c++/11/bits/stl_uninitialized.h:333:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*; _Tp = mail::SendMail]’ /usr/include/c++/11/bits/stl_uninitialized.h:355:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mail::SendMail*; _ForwardIterator = mail::SendMail*; _Allocator = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:474:3: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::iterator = std::vector::iterator]’ /usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/bits/stl_uninitialized.h:138:72: error: static assertion failed: result type must be constructible from value type of input range 138 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, | ^~~~~ /usr/include/c++/11/bits/stl_uninitialized.h:138:72: note: ‘std::integral_constant::value’ evaluates to false In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/c++allocator.h:33, from /usr/include/c++/11/bits/allocator.h:46, from /usr/include/c++/11/string:41, from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from ../ServerCore/includes:1, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_DATA.h:4, from __SMTP_DATA.cpp:1: /usr/include/c++/11/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail]’: /usr/include/c++/11/bits/alloc_traits.h:516:17: required from ‘static void std::allocator_traits >::construct(std::allocator_traits >::allocator_type&, _Up*, _Args&& ...) [with _Up = mail::SendMail; _Args = {mail::SendMail}; _Tp = mail::SendMail; std::allocator_traits >::allocator_type = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:115:30: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/ext/new_allocator.h:162:11: error: use of deleted function ‘mail::SendMail::SendMail(const mail::SendMail&)’ 162 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from SMTPServer.h:23, from __SMTP_DATA.cpp:2: SendMail.h:14:10: note: ‘mail::SendMail::SendMail(const mail::SendMail&)’ is implicitly deleted because the default definition would be ill-formed: 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ SendMail.h:14:10: error: use of deleted function ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_DATA.cpp:2: ../ServerCore/TCPSession2.h:26:10: note: ‘core::TCPSession2::TCPSession2(const core::TCPSession2&)’ is implicitly deleted because the default definition would be ill-formed: 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ In file included from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_DATA.h:4, from __SMTP_DATA.cpp:1: ../ServerCore/TCPSocket.h:20:10: note: ‘core::TCPSocket::TCPSocket(const core::TCPSocket&)’ is implicitly deleted because the default definition would be ill-formed: 20 | class TCPSocket : public Socket { | ^~~~~~~~~ ../ServerCore/TCPSocket.h:20:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_DATA.h:4, from __SMTP_DATA.cpp:1: ../ServerCore/Socket.h:34:10: note: ‘core::Socket::Socket(const core::Socket&)’ is implicitly deleted because the default definition would be ill-formed: 34 | class Socket { | ^~~~~~ ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_DATA.h:4, from __SMTP_DATA.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from ../ServerCore/TCPSocket.h:5, from ../ServerCore/TCPSession.h:4, from ../ServerCore/Command.h:6, from SMTPCommand.h:4, from __SMTP_DATA.h:4, from __SMTP_DATA.cpp:1: ../ServerCore/Socket.h:34:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 34 | class Socket { | ^~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_DATA.h:4, from __SMTP_DATA.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_DATA.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>::basic_stringstream(const std::__cxx11::basic_stringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from ../ServerCore/includes:13, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_DATA.h:4, from __SMTP_DATA.cpp:1: /usr/include/c++/11/sstream:1057:7: note: declared here 1057 | basic_stringstream(const basic_stringstream&) = delete; | ^~~~~~~~~~~~~~~~~~ In file included from SendMail.h:6, from SMTPServer.h:23, from __SMTP_DATA.cpp:2: ../ServerCore/TCPSession2.h:26:10: error: use of deleted function ‘std::mutex::mutex(const std::mutex&)’ 26 | class TCPSession2 : public TCPSocket { | ^~~~~~~~~~~ In file included from /usr/include/c++/11/mutex:43, from ../ServerCore/includes:17, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_DATA.h:4, from __SMTP_DATA.cpp:1: /usr/include/c++/11/bits/std_mutex.h:94:5: note: declared here 94 | mutex(const mutex&) = delete; | ^~~~~ In file included from SMTPServer.h:23, from __SMTP_DATA.cpp:2: SendMail.h:14:10: error: use of deleted function ‘core::Timer::Timer(const core::Timer&)’ 14 | class SendMail : public core::TCPSession2, private core::Timer { | ^~~~~~~~ In file included from ../ServerCore/TCPSession2.h:5, from SendMail.h:6, from SMTPServer.h:23, from __SMTP_DATA.cpp:2: ../ServerCore/Timer.h:18:10: note: ‘core::Timer::Timer(const core::Timer&)’ is implicitly deleted because the default definition would be ill-formed: 18 | class Timer : Socket { | ^~~~~ ../ServerCore/Timer.h:18:10: error: use of deleted function ‘core::Socket::Socket(const core::Socket&)’ In file included from /usr/include/c++/11/vector:66, from ../ServerCore/includes:2, from ../ServerCore/Command.h:4, from SMTPCommand.h:4, from __SMTP_DATA.h:4, from __SMTP_DATA.cpp:1: /usr/include/c++/11/bits/stl_uninitialized.h: In instantiation of ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*]’: /usr/include/c++/11/bits/stl_uninitialized.h:333:37: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator; _ForwardIterator = mail::SendMail*; _Tp = mail::SendMail]’ /usr/include/c++/11/bits/stl_uninitialized.h:355:2: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = mail::SendMail*; _ForwardIterator = mail::SendMail*; _Allocator = std::allocator]’ /usr/include/c++/11/bits/vector.tcc:474:3: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::iterator = std::vector::iterator]’ /usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mail::SendMail}; _Tp = mail::SendMail; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::reference = mail::SendMail&]’ SMTPServer.h:73:38: required from here /usr/include/c++/11/bits/stl_uninitialized.h:138:72: error: static assertion failed: result type must be constructible from value type of input range 138 | static_assert(is_constructible<_ValueType2, decltype(*__first)>::value, | ^~~~~ /usr/include/c++/11/bits/stl_uninitialized.h:138:72: note: ‘std::integral_constant::value’ evaluates to false