www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Containers with non copyable types

For example it is no problem in C++ to have

std::vector<std::unique_ptr<foo>> vuf;

But how can this be expressed in D?

For example

Array!(Unique!int) ua;

doesn't compile because it requires this(this) which is obviously 
disabled for "Unique".
Feb 01 2016