diff --git a/std/functional.d b/std/functional.d index cf7e3ff8cc2..b1b1382280d 100644 --- a/std/functional.d +++ b/std/functional.d @@ -1349,7 +1349,8 @@ template memoize(alias fun) alias memoize = impl; } - auto impl(Args...)(Args args) if (is(typeof(fun(args)))) + auto impl(Args...)(Args args) + if (is(typeof(fun(args)))) { import std.typecons : Tuple, tuple; import std.traits : Unqual; @@ -1393,7 +1394,8 @@ template memoize(alias fun, uint maxSize) alias memoize = impl; } - auto impl(Args...)(Args args) if (is(typeof(fun(args)))) + auto impl(Args...)(Args args) + if (is(typeof(fun(args)))) { static if (args.length > 0) {