This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/55123] [C++11] Construction of shared_ptr<const T> from unique_ptr<const T> fails
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Oct 2012 19:50:59 +0000
- Subject: [Bug libstdc++/55123] [C++11] Construction of shared_ptr<const T> from unique_ptr<const T> fails
- Auto-submitted: auto-generated
- References: <bug-55123-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55123
--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> 2012-10-29 19:50:59 UTC ---
The standard doesn't say anything about it, but it would also be possible to
tweak one of the address overloads in allocator so there is no ambiguity when
both types are the same. No idea if that's desirable though, I haven't followed
the allocator work.