public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/5619: std::valarray<T>::operator==(std::valarray<T>&) doesn't return bool
@ 2002-02-06 16:20 paolo
0 siblings, 0 replies; only message in thread
From: paolo @ 2002-02-06 16:20 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, paolo, t6
Synopsis: std::valarray<T>::operator==(std::valarray<T>&) doesn't return bool
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Wed Feb 6 16:20:57 2002
Responsible-Changed-Why:
Analyzed.
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Wed Feb 6 16:20:57 2002
State-Changed-Why:
Not a bug. According to 26.3.3.2, operator== returns a
valarray<bool> *not* a bool. Indeed, this one compiles:
#include <valarray>
int main(int argc, char* argv[])
{
std::valarray<double> a(1.2, 10);
std::valarray<double> b(1.2, 10);
//bool equal = ( a == b);
std::valarray<bool> equal = ( a == b);
//return int(equal);
}
Cheers, Paolo
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5619
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-07 0:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-06 16:20 libstdc++/5619: std::valarray<T>::operator==(std::valarray<T>&) doesn't return bool paolo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).