[Issue 14432] New: move construction for RefCounted
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Apr 9 19:36:56 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14432
Issue ID: 14432
Summary: move construction for RefCounted
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: code at dawg.eu
It's currently not possible to use non-copyable structs that model unique
ownership of a resource with RefCounted to share ownership.
This should work similar to how a unique_ptr in C++ can be converted to a
shared_ptr, and makes unique ownership a viable default for resources such as
files.
--
More information about the Digitalmars-d-bugs
mailing list