Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc 4.8.5 build failed #24

Open
ghost opened this issue Jan 9, 2019 · 0 comments
Open

gcc 4.8.5 build failed #24

ghost opened this issue Jan 9, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 9, 2019

gcc 4.8.5 on centos 7.5, build failed, follow is the error output:

/nanomsgxx-master/src/nnxx/message_istream.hpp: In instantiation of ‘nnxx::basic_message_istream<Char, Traits>::basic_message_istream(nnxx::basic_message_istream<Char, Traits>&&) [with Char = char; Traits = std::char_traits]’:
../src/nnxx/message_istream.cpp:30:18: required from here
/nanomsgxx-master/src/nnxx/message_istream.hpp:35:35: error: use of deleted function ‘std::basic_istream::basic_istream(const std::basic_istream&)’
m_buffer(std::move(m.m_buffer))
^
In file included from /nanomsgxx-master/src/nnxx/message_istream.h:28:0,
from ../src/nnxx/message_istream.cpp:25:
/usr/include/c++/4.8.2/istream:58:11: note: ‘std::basic_istream::basic_istream(const std::basic_istream&)’ is implicitly deleted because the default definition would be ill-formed:
class basic_istream : virtual public basic_ios<_CharT, _Traits>
^
/usr/include/c++/4.8.2/istream:58:11: error: use of deleted function ‘std::basic_ios::basic_ios(const std::basic_ios&)’
In file included from /usr/include/c++/4.8.2/ios:44:0,
from /usr/include/c++/4.8.2/istream:38,
from /nanomsgxx-master/src/nnxx/message_istream.h:28,
from ../src/nnxx/message_istream.cpp:25:
/usr/include/c++/4.8.2/bits/basic_ios.h:66:11: note: ‘std::basic_ios::basic_ios(const std::basic_ios&)’ is implicitly deleted because the default definition would be ill-formed:
class basic_ios : public ios_base
^
In file included from /usr/include/c++/4.8.2/ios:42:0,
from /usr/include/c++/4.8.2/istream:38,
from /nanomsgxx-master/src/nnxx/message_istream.h:28,
from ../src/nnxx/message_istream.cpp:25:
/usr/include/c++/4.8.2/bits/ios_base.h:786:5: error: ‘std::ios_base::ios_base(const std::ios_base&)’ is private
ios_base(const ios_base&);
^
In file included from /usr/include/c++/4.8.2/ios:44:0,
from /usr/include/c++/4.8.2/istream:38,
from /nanomsgxx-master/src/nnxx/message_istream.h:28,
from ../src/nnxx/message_istream.cpp:25:
/usr/include/c++/4.8.2/bits/basic_ios.h:66:11: error: within this context
class basic_ios : public ios_base
^
In file included from ../src/nnxx/message_istream.cpp:26:0:
/nanomsgxx-master/src/nnxx/message_istream.hpp: In instantiation of ‘void nnxx::basic_message_istream<Char, Traits>::swap(nnxx::basic_message_istream<Char, Traits>&) [with Char = char; Traits = std::char_traits]’:
../src/nnxx/message_istream.cpp:30:18: required from here
/nanomsgxx-master/src/nnxx/message_istream.hpp:55:22: error: ‘swap’ is not a member of ‘nnxx::basic_message_istream::base_type {aka std::basic_istream}’
base_type::swap(m);
^
In file included from ../src/nnxx/message_ostream.cpp:26:0:
/nanomsgxx-master/src/nnxx/message_ostream.hpp: In instantiation of ‘nnxx::basic_message_ostream<Char, Traits>::basic_message_ostream(nnxx::basic_message_ostream<Char, Traits>&&) [with Char = char; Traits = std::char_traits]’:
../src/nnxx/message_ostream.cpp:30:18: required from here
/nanomsgxx-master/src/nnxx/message_ostream.hpp:43:35: error: use of deleted function ‘std::basic_ostream::basic_ostream(const std::basic_ostream&)’
m_buffer(std::move(m.m_buffer))
^
In file included from /nanomsgxx-master/src/nnxx/message_ostream.h:28:0,
from ../src/nnxx/message_ostream.cpp:25:
/usr/include/c++/4.8.2/ostream:58:11: note: ‘std::basic_ostream::basic_ostream(const std::basic_ostream&)’ is implicitly deleted because the default definition would be ill-formed:
class basic_ostream : virtual public basic_ios<_CharT, _Traits>
^
/usr/include/c++/4.8.2/ostream:58:11: error: use of deleted function ‘std::basic_ios::basic_ios(const std::basic_ios&)’
In file included from /usr/include/c++/4.8.2/ios:44:0,
from /usr/include/c++/4.8.2/ostream:38,
from /nanomsgxx-master/src/nnxx/message_ostream.h:28,
from ../src/nnxx/message_ostream.cpp:25:
/usr/include/c++/4.8.2/bits/basic_ios.h:66:11: note: ‘std::basic_ios::basic_ios(const std::basic_ios&)’ is implicitly deleted because the default definition would be ill-formed:
class basic_ios : public ios_base
^
In file included from /usr/include/c++/4.8.2/ios:42:0,
from /usr/include/c++/4.8.2/ostream:38,
from /nanomsgxx-master/src/nnxx/message_ostream.h:28,
from ../src/nnxx/message_ostream.cpp:25:
/usr/include/c++/4.8.2/bits/ios_base.h:786:5: error: ‘std::ios_base::ios_base(const std::ios_base&)’ is private
ios_base(const ios_base&);
^
In file included from /usr/include/c++/4.8.2/ios:44:0,
from /usr/include/c++/4.8.2/ostream:38,
from /nanomsgxx-master/src/nnxx/message_ostream.h:28,
from ../src/nnxx/message_ostream.cpp:25:
/usr/include/c++/4.8.2/bits/basic_ios.h:66:11: error: within this context
class basic_ios : public ios_base
^
In file included from ../src/nnxx/message_ostream.cpp:26:0:
/nanomsgxx-master/src/nnxx/message_ostream.hpp: In instantiation of ‘void nnxx::basic_message_ostream<Char, Traits>::swap(nnxx::basic_message_ostream<Char, Traits>&) [with Char = char; Traits = std::char_traits]’:
../src/nnxx/message_ostream.cpp:30:18: required from here
/nanomsgxx-master/src/nnxx/message_ostream.hpp:63:22: error: ‘swap’ is not a member of ‘nnxx::basic_message_ostream::base_type {aka std::basic_ostream}’
base_type::swap(m);
^
In file included from /nanomsgxx-master/src/nnxx/message_streambuf.h:28:0,
from ../src/nnxx/message_streambuf.cpp:25:
/nanomsgxx-master/src/nnxx/message_streambuf.hpp: In instantiation of ‘nnxx::basic_message_streambuf<Char, Traits>::basic_message_streambuf(nnxx::basic_message_streambuf<Char, Traits>&&) [with Char = char; Traits = std::char_traits]’:
../src/nnxx/message_streambuf.cpp:30:18: required from here
/usr/include/c++/4.8.2/streambuf:802:7: error: ‘std::basic_streambuf<_CharT, _Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits]’ is private
basic_streambuf(const basic_streambuf& __sb)
^
In file included from ../src/nnxx/message_streambuf.cpp:26:0:
/nanomsgxx-master/src/nnxx/message_streambuf.hpp:129:29: error: within this context
m_msg(std::move(m.m_msg))
^
/nanomsgxx-master/src/nnxx/message_streambuf.hpp: In instantiation of ‘void nnxx::basic_message_streambuf<Char, Traits>::swap(nnxx::basic_message_streambuf<Char, Traits>&) [with Char = char; Traits = std::char_traits]’:
../src/nnxx/message_streambuf.cpp:30:18: required from here
/nanomsgxx-master/src/nnxx/message_streambuf.hpp:146:22: error: ‘swap’ is not a member of ‘nnxx::basic_message_streambuf::base_type {aka std::basic_streambuf}’
base_type::swap(m);
^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants