[Bug c++/23227] SFINAE bug
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Wed Sep 14 22:11:00 GMT 2005
------- Additional Comments From gdr at integrable-solutions dot net 2005-09-14 22:11 -------
Subject: Re: SFINAE bug
"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| 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.
In fact, I've come to be on the same position: I don't know. This is
probably something we need to forward to CWG.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23227
More information about the Gcc-bugs
mailing list