aboutsummaryrefslogtreecommitdiff
path: root/lib/converters.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-24 15:56:03 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-24 15:56:03 +0200
commit7fdb1a8653863f580b2672faefc08fb372258df8 (patch)
tree49b46f717ea981bb4f41b4a2b60d8ec1b1b5d617 /lib/converters.h
parent6ae41d68dcdb91e5ec4a3ea48a151daaa0765765 (diff)
downloadlibquotient-7fdb1a8653863f580b2672faefc08fb372258df8.tar.gz
libquotient-7fdb1a8653863f580b2672faefc08fb372258df8.zip
Code cleanup and reformatting
Diffstat (limited to 'lib/converters.h')
-rw-r--r--lib/converters.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/converters.h b/lib/converters.h
index 385982ab..c445442c 100644
--- a/lib/converters.h
+++ b/lib/converters.h
@@ -86,8 +86,8 @@ struct JsonConverter : _impl::JsonExporter<T> {
static T load(const QJsonDocument& jd) { return doLoad(jd.object()); }
};
-template <typename T,
- typename = std::enable_if_t<!std::is_constructible_v<QJsonValue, T>>>
+template <typename T>
+ requires (!std::is_constructible_v<QJsonValue, T>)
inline auto toJson(const T& pod)
// -> can return anything from which QJsonValue or, in some cases, QJsonDocument
// is constructible