This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51657] bind1st multiplies a pointer
- 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, 22 Dec 2011 21:27:56 +0000
- Subject: [Bug libstdc++/51657] bind1st multiplies a pointer
- Auto-submitted: auto-generated
- References: <bug-51657-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51657
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-22 21:27:56 UTC ---
The standard says bind1st(const Op& op, const T& x) returns:
binder1st<Op>(op, typename Op::first_argument_type(x)).
note the explicit type conversion