Move internal stuff to std.algorithm.internal

This commit is contained in:
sinkuu 2015-02-13 13:38:59 +09:00
parent 492ab0df90
commit b55c07c63a
11 changed files with 103 additions and 95 deletions

View file

@ -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));