Skip to content

Commit 5ca34ea

Browse files
Resolve two minor issues
1 parent 4045c1d commit 5ca34ea

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

include/rfl/internal/all_fields.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
namespace rfl::internal {
77

8-
template <class Head, class... Tail>
9-
constexpr bool all_fields_v = (is_field_v<Head> && ... && is_field_v<Tail>);
8+
template <class... Ts>
9+
constexpr bool all_fields_v = (is_field_v<Ts> && ...);
1010

1111
} // namespace rfl::internal
1212

include/rfl/parsing/FieldVariantParser.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ struct FieldVariantParser {
9090
* @return The schema type.
9191
*/
9292
static schema::Type to_schema(
93-
std::map<std::string, schema::Type>* _definitions,
94-
std::vector<schema::Type> = {}) {
93+
std::map<std::string, schema::Type>* _definitions) {
9594
return schema::Type{schema::Type::AnyOf{
9695
.types_ = std::vector<schema::Type>(
9796
{one_field_to_type<FieldTypes>(_definitions)...})}};

0 commit comments

Comments
 (0)