This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/50641] [c++0x] is_convertible and is_constructible incorrectly require copy constructibility
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Oct 2011 07:13:50 +0000
- Subject: [Bug libstdc++/50641] [c++0x] is_convertible and is_constructible incorrectly require copy constructibility
- Auto-submitted: auto-generated
- References: <bug-50641-4@http.gcc.gnu.org/bugzilla/>
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.