Skip to content

Commit

Permalink
Merge pull request #663 from Kicer86/dependabot/submodules/src/third_…
Browse files Browse the repository at this point in the history
…party/reflect-cpp-b6651a4

Bump src/third_party/reflect-cpp from `d2bff99` to `b6651a4`
  • Loading branch information
mergify[bot] authored Aug 26, 2024
2 parents c874e76 + 793ec61 commit af30b63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/core/json_serializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ namespace JSon

const auto objView = rfl::to_view(obj);

const auto process = [&jsonObj]<class... F>(F... _field) {
const auto process = [&jsonObj]<typename... F>(F... _field) {
(( jsonObj[QString::fromStdString(typename F::Name().str())] = getSerialized(*_field.value()) ), ...);
};

std::apply(process, objView.fields());
rfl::apply(process, objView.fields());

return jsonObj;
}
Expand Down Expand Up @@ -143,11 +143,11 @@ namespace JSon
const QJsonObject jsonObj = convertTo<QJsonObject>(json);
auto objView = rfl::to_view(r);

const auto process = [&jsonObj]<class... F>(F... _field) {
const auto process = [&jsonObj]<typename... F>(F... _field) {
(( *_field.value() = getDeserialized<std::remove_pointer_t<typename F::Type>>(jsonObj[QString::fromStdString(typename F::Name().str())]) ), ...);
};

std::apply(process, objView.fields());
rfl::apply(process, objView.fields());
}

return r;
Expand Down
2 changes: 1 addition & 1 deletion src/core/unit_tests/json_serializer_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include <gtest/gtest.h>
#include <rfl.hpp>

#include "rfl.hpp"
#include "json_serializer.hpp"
#include "json_serializer_tests.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/third_party/reflect-cpp
Submodule reflect-cpp updated 124 files

0 comments on commit af30b63

Please sign in to comment.