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: "redi 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 18:06:39 +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
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-10-29
AssignedTo|unassigned at gcc dot |redi at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-29 18:06:39 UTC ---
This is basically the same problem as prevents std::vector<const int>, but
since using an allocator for that shared_ptr(unique_ptr&&) constructor is an
implementation detail and not required I suppose it should work.
The problem is that (unlike boost::shared_ptr) we don't have separate
_Sp_counted_deleter and _Sp_counted_deleter_with_allocator.