mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 16:56:17 +08:00
Using std::optional in the fields array; fixes the test and increases safety
This commit is contained in:
@@ -85,9 +85,9 @@ struct Reader {
|
||||
}
|
||||
|
||||
template <size_t size, class FunctionType>
|
||||
std::array<InputVarType, size> to_fields_array(
|
||||
std::array<std::optional<InputVarType>, size> to_fields_array(
|
||||
const FunctionType& _fct, const InputObjectType& _obj) const noexcept {
|
||||
std::array<InputVarType, size> f_arr;
|
||||
std::array<std::optional<InputVarType>, size> f_arr;
|
||||
|
||||
const auto keys = _obj.Keys();
|
||||
const auto values = _obj.Values();
|
||||
|
||||
Reference in New Issue
Block a user