diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-11-28 16:04:42 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-11-28 16:10:34 +0100 |
commit | 080af15c8aa7cc51f97c924ba4678083b7f8da8f (patch) | |
tree | 126405e2ff6c590d24defd7407f84afa832ce1c5 /lib/converters.h | |
parent | e12a7aac030aaf53122da4b1bd55f3a97325f624 (diff) | |
download | libquotient-080af15c8aa7cc51f97c924ba4678083b7f8da8f.tar.gz libquotient-080af15c8aa7cc51f97c924ba4678083b7f8da8f.zip |
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.)
Diffstat (limited to 'lib/converters.h')
-rw-r--r-- | lib/converters.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<T>::load(jv); } +template<> inline QJsonValue fromJson(const QJsonValue& jv) { return jv; } template <typename T> |