[phobos] [D-Programming-Language/phobos] 81ca4a: use assert instead of enforce for moveAll
GitHub via phobos
phobos at puremagic.com
Fri Aug 7 07:23:45 PDT 2015
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/phobos
Commit: 81ca4a8cc5ff4f8391f0a01a6edf94596c21ea7a
https://github.com/D-Programming-Language/phobos/commit/81ca4a8cc5ff4f8391f0a01a6edf94596c21ea7a
Author: Martin Nowak <code at dawg.eu>
Date: 2015-08-07 (Fri, 07 Aug 2015)
Changed paths:
M std/algorithm/mutation.d
Log Message:
-----------
use assert instead of enforce for moveAll
- it's a programming error to call the function w/o
knowing if tgt can accomodate all of src
- for cases where it cannot be known in advance
there is moveSome which will stop when either
range is exhausted
- allows to make moveAll nothrow @nogc depending
on the destructor of T
Commit: 94f718e5c69939f595fb839d3aae24878f126d78
https://github.com/D-Programming-Language/phobos/commit/94f718e5c69939f595fb839d3aae24878f126d78
Author: Dmitry Olshansky <dmitry.olsh at gmail.com>
Date: 2015-08-07 (Fri, 07 Aug 2015)
Changed paths:
M std/algorithm/mutation.d
Log Message:
-----------
Merge pull request #3531 from MartinNowak/moveAllAssert
use assert instead of enforce for moveAll
Compare: https://github.com/D-Programming-Language/phobos/compare/d222e4224cc4...94f718e5c699
More information about the phobos
mailing list