D-Programming-Language/phobos — pull request #721 by monarchdodra (2012-07-25 09:50:27+00:00)
Title: Small fixes in RefCounted

I was originally trying to fix a bug in Array when copying it.

Allows Fix allws this to work correctly:
RefCounted!(int, RefCountedAutoInitialize.yes) a;
a = 5;

(this used to create an access violation)
In the case of a non-autoInit, it will create an assert (as opposed to an access violation)

Better move optimization for opAssign(T)
Enforce initialization in opAssign(RefCounted) when autoInit == yes