aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src/std/getopt.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/src/std/getopt.d')
-rw-r--r--libphobos/src/std/getopt.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/libphobos/src/std/getopt.d b/libphobos/src/std/getopt.d
index b239901..c85247f 100644
--- a/libphobos/src/std/getopt.d
+++ b/libphobos/src/std/getopt.d
@@ -558,7 +558,7 @@ private template optionValidator(A...)
import std.format : format;
enum fmt = "getopt validator: %s (at position %d)";
- enum isReceiver(T) = isPointer!T || (is(T == function)) || (is(T == delegate));
+ enum isReceiver(T) = is(T : U*, U) || (is(T == function)) || (is(T == delegate));
enum isOptionStr(T) = isSomeString!T || isSomeChar!T;
auto validator()