August 07, 2015 [phobos] [D-Programming-Language/phobos] 81ca4a: use assert instead of enforce for moveAll | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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@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@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 |
Copyright © 1999-2021 by the D Language Foundation