This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52612] std::tr1::bind doesn't work with placeholders
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Mar 2012 10:39:10 +0000
- Subject: [Bug libstdc++/52612] std::tr1::bind doesn't work with placeholders
- Auto-submitted: auto-generated
- References: <bug-52612-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52612
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-19 10:39:10 UTC ---
I seem to remember that this is a known problem of the tr1 version of this
facility, per the specs. Changing the snippet like the following works:
...
int main()
{
int n = 5;
std::tr1::bind(return_int2,32,std::tr1::placeholders::_1)(n);
}