Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/rfl/internal/move_from_tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct IndptrHelper {
static constexpr auto indptr_ = ArrayType{_head, _tail...};

template <size_t... _is>
consteval auto operator+(const IndptrHelper<_is...>& _other) const {
consteval auto operator+(const IndptrHelper<_is...>&) const {
constexpr auto last = std::get<sizeof...(_tail)>(indptr_);
return IndptrHelper<_head, _tail..., (last + _is)...>{};
}
Expand Down
6 changes: 4 additions & 2 deletions include/rfl/parsing/ParserDefaultVal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ struct ParserDefaultVal {
static schema::Type to_schema(
std::map<std::string, schema::Type>* _definitions) {
using U = std::remove_cvref_t<T>;
return schema::Type{schema::Type::DefaultVal{Ref<schema::Type>::make(
Parser<R, W, U, ProcessorsType>::to_schema(_definitions))}};
return schema::Type{schema::Type::DefaultVal{
.type_ = Ref<schema::Type>::make(
Parser<R, W, U, ProcessorsType>::to_schema(_definitions)),
.default_value_ = std::nullopt}};
}
};

Expand Down