libstdc++/7824: Temporary ostream doesn't work properly with operator<< and const char*
Benjamin Kosnik
bkoz@redhat.com
Wed Nov 6 11:36:00 GMT 2002
The following reply was made to PR libstdc++/7824; it has been noted by GNATS.
From: Benjamin Kosnik <bkoz@redhat.com>
To: Martin Sebor <sebor@roguewave.com>
Cc: bkoz@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/7824: Temporary ostream doesn't work properly with operator<< and const char*
Date: Wed, 6 Nov 2002 13:28:08 -0600
>That's the correct behavior. The char* non-member inserter takes
>a non-const reference, so it's not a viable match. The void*
>inserter is a member, so it is called for the unnamed temporary
>(rvalue). We got the same report a while ago :)
A ha! Thanks Martin.
I'll close this now...
-benjamin
More information about the Gcc-prs
mailing list