This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/48313] 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: Mon, 28 Mar 2011 12:24:40 +0000
- Subject: [Bug libstdc++/48313] 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 #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-28 12:24:23 UTC ---
The example can be modified to work by passing a pointer, so the template
argument isn't deduced as a function type:
std::bind( &func<int>, 0 );