[Bug libstdc++/50641] [c++0x] is_convertible and is_constructible incorrectly require copy constructibility

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 7 07:14:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50641

--- Comment #5 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-10-07 07:13:50 UTC ---
(In reply to comment #4)
> N3242 says that From needs to be
> "convertible" to To, but I'm not at all convinced that "convertible" means the
> same thing as "is_convertible".  Maybe if it's illegal I'll file a DR some day.

It really means the same, "implicit conversion" is currently identical to
"copy-initialization".

Note that the example here is addressed by LWG issue 2005 and it should work,
once the specification changes it "is convertible" requirement to a
corresponding "is constructible" requirement. The current P/R of LWG 2005 does
not contain the revised wording suggestion, though.



More information about the Gcc-bugs mailing list