[Bug c++/23227] SFINAE bug
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Sep 14 21:11:00 GMT 2005
------- Additional Comments From bangerth at dealii dot org 2005-09-14 21:10 -------
Fair enough. And to get more to the point of only using user-defined
conversion sequences (instead of the standard conversion from double
to int):
--------------------
struct A;
struct B { B(const double &); };
void f(const A&) { }
void f(const B&) { }
void g()
{
f(2.0);
}
----------------------
This is accepted by all compilers I have as well.
I retract my point of view. This doesn't mean, however, that I'm convinced
that the opposite would be true.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23227
More information about the Gcc-bugs
mailing list