This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48313] [C++0x] std::bind with template function
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Mar 2011 12:40:35 +0000
- Subject: [Bug c++/48313] [C++0x] std::bind with template function
- Auto-submitted: auto-generated
- References: <bug-48313-4@http.gcc.gnu.org/bugzilla/>
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()]'