bind1st fails to compile when argument type is a constant reference

Jonathan Wakely jwakely.gcc@gmail.com
Sat Nov 19 12:44:00 GMT 2011


2011/11/19 Krzysztof Żelechowski:
>
> It is in the committee draft
> <http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#CD1>.

And the standard.  Have you actually looked at the standard to check?

Status CD1 means it was integrated into the working paper before the
"CD1" version which was three years ago now. In case you missed the
news, there's been a new standard since then.  It is in the C++11
standard.

> The
> compiler in TR1 mode

There is no "TR1 mode", the compiler knows nothing about TR1, it's
purely a library and is not a standard.

> is not obliged to comply with it, and should do it only
> as far as it is reasonable to do so.

It's in the standard.

Did I mention it's in the standard?  I think I did. In case you missed
it: it's in the standard.

>  It is not clear what is reasonable in
> this case, in that it involves a tradeoff between general applicability and
> Stroustrup's use case.

You seem to imply Stroustrup's use case is some kind of weird, unusual
case.  It's not.



More information about the Libstdc++ mailing list