Opened 11 years ago
Closed 10 years ago
#6625 closed Feature Requests (fixed)
Support conversion from std::unique_ptr to boost::shared_ptr
| Reported by: | Owned by: | Peter Dimov | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | smart_ptr |
| Version: | Boost 1.49.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
Please support conversion from std::unique_ptr to boost::shared_ptr like for std::auto_ptr
Change History (7)
comment:1 by , 11 years ago
| Summary: | Support std::unique_ptr in boost::shared_ptr → Support conversion from std::unique_ptr to boost::shared_ptr |
|---|
follow-up: 3 comment:2 by , 11 years ago
comment:3 by , 11 years ago
Replying to Michel Morin <mimomorin@…>:
In C++11,
std::shared_ptrhas the following constructortemplate <class Y, class D> shared_ptr(unique_ptr<Y, D>&& r);
I want similar constructor for boost::shared_ptr
comment:5 by , 10 years ago
comment:7 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

In C++11,
std::shared_ptrhas the following constructor