Subject: [Boost-bugs] [Boost C++ Libraries] #8469: compiler errors with gcc in c++11 mode from bind and shared_ptr
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-22 06:47:08
#8469: compiler errors with gcc in c++11 mode from bind and shared_ptr
--------------------------+-------------------------------------------------
Reporter: fyter@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.51.0
Severity: Problem | Keywords: bind shared_ptr c++11
--------------------------+-------------------------------------------------
#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<.....'.......
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8469> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC