Bug 13157 – std.typecons.Unique: Support construction and conversion from compatible types

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-18T15:11:00Z
Last change time
2014-08-21T17:49:30Z
Keywords
pull
Assigned to
nobody
Creator
nick

Comments

Comment #0 by nick — 2014-07-18T15:11:46Z
Currently commented-out Unique code should be updated and tested to: 1. Enable unaliased construction of the unique resource by wrapping resource constructor. 2. Enable transferring Unique!Derived rvalue to Unique!Base.
Comment #1 by nick — 2014-07-18T15:13:28Z
Comment #2 by nick — 2014-08-19T10:59:58Z
I now think it's best to defer (1) for now in case of better alternatives that may be available in future (e.g. limited compiler support).
Comment #3 by github-bugzilla — 2014-08-21T17:49:30Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/45ad6a77af4adefc468abc8d20ba6e5ef10de445 Merge pull request #2346 from ntrel/unique-update Fix Issue 13157 - std.typecons.Unique: Support construction and conversion from compatible types