This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]