mirror of
https://github.com/dlang/phobos.git
synced 2025-05-09 21:11:57 +03:00
Merge pull request #1793 from MartinNowak/imports
localize std.range import
This commit is contained in:
commit
0d3197de92
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,7 @@
|
||||||
module std.math;
|
module std.math;
|
||||||
|
|
||||||
import core.stdc.math;
|
import core.stdc.math;
|
||||||
import std.range, std.traits;
|
import std.traits;
|
||||||
|
|
||||||
version(unittest)
|
version(unittest)
|
||||||
{
|
{
|
||||||
|
@ -5649,6 +5649,7 @@ unittest
|
||||||
*/
|
*/
|
||||||
bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
|
bool approxEqual(T, U, V)(T lhs, U rhs, V maxRelDiff, V maxAbsDiff = 1e-5)
|
||||||
{
|
{
|
||||||
|
import std.range;
|
||||||
static if (isInputRange!T)
|
static if (isInputRange!T)
|
||||||
{
|
{
|
||||||
static if (isInputRange!U)
|
static if (isInputRange!U)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue