mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Move internal stuff to std.algorithm.internal
This commit is contained in:
parent
492ab0df90
commit
b55c07c63a
11 changed files with 103 additions and 95 deletions
|
@ -1204,7 +1204,7 @@ MaxType!T max(T...)(T args)
|
|||
auto b = max(args[($+1)/2 .. $]);
|
||||
alias typeof(b) T1;
|
||||
|
||||
import std.algorithm : algoFormat;
|
||||
import std.algorithm.internal : algoFormat;
|
||||
static assert (is(typeof(a < b)),
|
||||
algoFormat("Invalid arguments: Cannot compare types %s and %s.", T0.stringof, T1.stringof));
|
||||
|
||||
|
@ -1312,7 +1312,7 @@ MinType!T min(T...)(T args)
|
|||
auto b = min(args[($+1)/2 .. $]);
|
||||
alias typeof(b) T1;
|
||||
|
||||
import std.algorithm : algoFormat;
|
||||
import std.algorithm.internal : algoFormat;
|
||||
static assert (is(typeof(a < b)),
|
||||
algoFormat("Invalid arguments: Cannot compare types %s and %s.", T0.stringof, T1.stringof));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue