Opened 10 years ago
Closed 9 years ago
#8469 closed Bugs (fixed)
compiler errors with gcc in c++11 mode from bind and shared_ptr
Reported by: | Owned by: | Peter Dimov | |
---|---|---|---|
Milestone: | To Be Determined | Component: | bind |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | bind shared_ptr c++11 | Cc: |
Description
#include <boost/asio.hpp> #include <boost/bind.hpp> #include <boost/enable_shared_from_this.hpp>
boost::asio::io_service io;
class test : public boost::enable_shared_from_this<test> { public:
void process(){} void start() {
io.post(bind(&test::process, shared_from_this()));
}
};
int main() { }
---------------end ---------------------- c++ test.cpp -lboost_system -std=c++11
....io_service.ipp: In instantiation of .... io_service.ipp:126:3: error: use of deleted function 'boost::_bi::bind_t<.....'.......
Attachments (1)
Change History (8)
by , 10 years ago
Attachment: | QQ截图20130422144925.png added |
---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Component: | None → asio |
---|---|
Owner: | set to |
comment:3 by , 10 years ago
Component: | asio → bind |
---|---|
Owner: | changed from | to
comment:7 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
gcc 4.8