[Bug libstdc++/55123] [C++11] Construction of shared_ptr<const T> from unique_ptr<const T> fails
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 29 18:07:00 GMT 2012
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.
More information about the Gcc-bugs
mailing list