This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48313] [C++0x] std::bind with template function


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48313

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-31 12:40:24 UTC ---
Thanks for the fix, Jason, I've just encountered the bug myself using
boost::thread

I expect others will to, so for the benefit of search engines, the error is

post_event_test.cc:130:47: error: cannot bind 'void()' lvalue to 'void (&&)()'
/home/jwakely/src/boost/boost_1_45_0/boost/thread/detail/thread.hpp:167:9:
error:   initializing argument 1 of 'boost::thread::thread(F&&) [with F =
void()]'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]