This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: bind1st fails to compile when argument type is a constant reference


2011/11/20 Krzysztof Åelechowski:
> It is irrelevant for the default mode of v4.4,

No it isn't, our policy has always been to fix issues when they reach
DR status, because it's a defect.

Insisting that users must live with defects when using -std=c++98
because the standard was defective as published in 1998 would not be
helpful.

If you RTFM you'll see -std=c++98 means "The 1998 ISO C++ standard
plus amendments."  The libstdc++ manual says "The Library Working
Group, or LWG, is the ISO subcommittee responsible for making changes
to the library. They periodically publish an Issues List containing
problems and possible solutions. As they reach a consensus on proposed
solutions, we often incorporate the solution."

Even if that wasn't the policy, this would not get changed in the 4.4
branch now.

In -std=c++98 mode you can use std::tr1::bind if binder1st doesn't
work.  With -std=c++0x or -std=c++11 you can use std::bind.


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