From 277e998167e980cd15241e1a053bb5a8ac1a54fa Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Thu, 1 Nov 2018 12:59:44 +0100 Subject: [PATCH] fix relying on implicit const conversion of JSONValue - "key" in JSONValue returns const(JSONValue)* - fromValue expected non-const JSONValue - implicit conversion of const(JSONValue) to JSONValue to be fixed with https://github.com/dlang/phobos/pull/6716 --- source/vibe/core/args.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/core/args.d b/source/vibe/core/args.d index dca6f78..d0615d4 100755 --- a/source/vibe/core/args.d +++ b/source/vibe/core/args.d @@ -298,7 +298,7 @@ private void init() readOption("h|help", &g_help, "Prints this help screen."); } -private T fromValue(T)(JSONValue val) +private T fromValue(T)(in JSONValue val) { import std.conv : to; static if (is(T == bool)) return val.type == JSON_TYPE.TRUE;