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

buffered_channel failed to compile with g++ 4.8 on Ubuntu #131

Closed
sdeber opened this issue Jun 23, 2017 · 1 comment
Closed

buffered_channel failed to compile with g++ 4.8 on Ubuntu #131

sdeber opened this issue Jun 23, 2017 · 1 comment

Comments

@sdeber
Copy link

sdeber commented Jun 23, 2017

I am trying to compile the code example with g++4.8 on Ubuntu 14.04 in the tutorial from boost website
http://www.boost.org/doc/libs/1_63_0/libs/fiber/doc/html/fiber/synchronization/channels/buffered_channel.html

And it failed with the following error:

opt/third_party/include/boost/fiber/buffered_channel.hpp: In instantiation of ‘boost::fibers::buffered_channel::buffered_channel(std::size_t) [with T = HAUD::SS7Wrapper*; std::size_t = long unsigned int]’:
/home/ak70/HaudDevelopment/HaudCore/HaudCore/Services/HaudSMSService/HaudEndpointWorker.cpp:23:25: required from here
/opt/third_party/include/boost/fiber/buffered_channel.hpp:49:9: error: use of deleted function ‘std::atomic::atomic(const std::atomic&)’
slot() = default;
^
In file included from /home/ak70/HaudDevelopment/HaudCore/HaudCore/Services/HaudSMSService/HaudWorkerJob.h:11:0,
from /home/ak70/HaudDevelopment/HaudCore/HaudCore/Services/HaudSMSService/HaudEndpointWorker.h:16,
from /home/ak70/HaudDevelopment/HaudCore/HaudCore/Services/HaudSMSService/HaudEndpointWorker.cpp:7:
/usr/include/c++/4.8/atomic:658:7: error: declared here
atomic(const atomic&) = delete;
^
In file included from /opt/third_party/include/boost/fiber/all.hpp:15:0,
from /home/ak70/HaudDevelopment/HaudCore/HaudCore/Services/HaudSMSService/HaudWorkerJob.h:19,
from /home/ak70/HaudDevelopment/HaudCore/HaudCore/Services/HaudSMSService/HaudEndpointWorker.h:16,
from /home/ak70/HaudDevelopment/HaudCore/HaudCore/Services/HaudSMSService/HaudEndpointWorker.cpp:7:
/opt/third_party/include/boost/fiber/buffered_channel.hpp:138:16: note: synthesized method ‘boost::fibers::buffered_channel::slot::slot() [with T = HAUD::SS7Wrapper*]’ first required here
slots_ = new slotcapacity_;
^
Any ideas?

@olk
Copy link
Member

olk commented Jul 12, 2017

it's a compiler problem - AFAIK gcc-4.8 is not fully C++11 compliant

@olk olk closed this as completed Jul 12, 2017
Romain-Geissler-1A pushed a commit to Romain-Geissler-1A/fiber that referenced this issue Apr 3, 2020
Use OSPLAT MIPS32/MIPS64 to set different ABI
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

2 participants