D-Programming-Language/phobos — pull request #724 by monarchdodra (2012-07-26 08:45:25+00:00)
Title: Small fix for opAssign(T)

Just a quick patch for opAssign(T)

This either:
*Asserts not initialized and autoInit==No (instead of doing an straight up access violation)
*calls "ensuresInitialized" if autoInit==Yes (making it work, instead of doing an access violation)

Uses "move(a, b)" instead of "b = move(a)" for slightly increased performance

Contains a stupid and small unittest, but covers as-of-yet uncovered basic usage