From 080af15c8aa7cc51f97c924ba4678083b7f8da8f Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Sun, 28 Nov 2021 16:04:42 +0100 Subject: One more small thing to actually fix CI breakage It's might look weird; but without making fromJson() a specialisation it becomes an overload next to an implicit specialisation of the template function defined just above, and then loses to that specialisation because it (also) has the perfect match. (would be great if the compiler shaded the implicit specialisation in such cases - alas it's not how the standard works.) --- lib/converters.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/converters.h') diff --git a/lib/converters.h b/lib/converters.h index f6d56527..84fab798 100644 --- a/lib/converters.h +++ b/lib/converters.h @@ -62,6 +62,7 @@ inline T fromJson(const QJsonValue& jv) return JsonConverter::load(jv); } +template<> inline QJsonValue fromJson(const QJsonValue& jv) { return jv; } template -- cgit v1.2.3