From 793ec617a315e6551f37531b2cf2ab55530b3bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Walenciak?= Date: Mon, 26 Aug 2024 09:10:51 +0200 Subject: [PATCH] Adopt to changes in reflect-cpp library --- src/core/json_serializer.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/json_serializer.hpp b/src/core/json_serializer.hpp index 056932f1e4..d197b72b93 100644 --- a/src/core/json_serializer.hpp +++ b/src/core/json_serializer.hpp @@ -93,11 +93,11 @@ namespace JSon const auto objView = rfl::to_view(obj); - const auto process = [&jsonObj](F... _field) { + const auto process = [&jsonObj](F... _field) { (( jsonObj[QString::fromStdString(typename F::Name().str())] = getSerialized(*_field.value()) ), ...); }; - std::apply(process, objView.fields()); + rfl::apply(process, objView.fields()); return jsonObj; } @@ -143,11 +143,11 @@ namespace JSon const QJsonObject jsonObj = convertTo(json); auto objView = rfl::to_view(r); - const auto process = [&jsonObj](F... _field) { + const auto process = [&jsonObj](F... _field) { (( *_field.value() = getDeserialized>(jsonObj[QString::fromStdString(typename F::Name().str())]) ), ...); }; - std::apply(process, objView.fields()); + rfl::apply(process, objView.fields()); } return r;