mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 08:46:19 +08:00
revert change of F&& to const F&
This commit is contained in:
@@ -38,7 +38,7 @@ void test() {
|
||||
}
|
||||
});
|
||||
|
||||
rfl::to_view(lisa).apply([](auto field) {
|
||||
rfl::to_view(lisa).apply([](auto field) mutable {
|
||||
if constexpr (decltype(field)::name() == "first_name") {
|
||||
*field.value() = "Bart";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user