mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
Get rid of std.conv.emplace[Ref](), use core[.internal].lifetime
The emplace() stuff was moved to druntime; for some reason, it's still in Phobos. I've diffed the two versions, and they are still almost identical (incl. unittests); the druntime version appears to have seen some improvements (e.g., forwarding r/lvalueness of the arguments) in the meantime.
This commit is contained in:
parent
e2f756866c
commit
1a459c5996
18 changed files with 48 additions and 1293 deletions
|
@ -3052,7 +3052,7 @@ schwartzSort(alias transform, alias less = "a < b",
|
|||
if (isRandomAccessRange!R && hasLength!R && hasSwappableElements!R &&
|
||||
!is(typeof(binaryFun!less) == SwapStrategy))
|
||||
{
|
||||
import std.conv : emplace;
|
||||
import core.lifetime : emplace;
|
||||
import std.range : zip, SortedRange;
|
||||
import std.string : representation;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue