From fd92304a1c3ef8c9df4c3035133f54b863c68e46 Mon Sep 17 00:00:00 2001 From: Patrick Urbanke Date: Wed, 29 Nov 2023 20:44:02 +0100 Subject: [PATCH] Minor bugfix: Make sure that is_required is maintained inside Rename --- include/rfl/internal/has_n_fields.hpp | 4 ++-- include/rfl/parsing/is_required.hpp | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/rfl/internal/has_n_fields.hpp b/include/rfl/internal/has_n_fields.hpp index 625fbeef..a4274fe5 100644 --- a/include/rfl/internal/has_n_fields.hpp +++ b/include/rfl/internal/has_n_fields.hpp @@ -8,8 +8,8 @@ namespace rfl { namespace internal { struct any { - template - constexpr operator T() const noexcept; + template + constexpr operator T() const noexcept; }; template diff --git a/include/rfl/parsing/is_required.hpp b/include/rfl/parsing/is_required.hpp index b38fa44d..967cc06d 100644 --- a/include/rfl/parsing/is_required.hpp +++ b/include/rfl/parsing/is_required.hpp @@ -5,6 +5,9 @@ #include #include +#include "rfl/Rename.hpp" +#include "rfl/internal/StringLiteral.hpp" + namespace rfl { namespace parsing { @@ -28,6 +31,9 @@ class is_required> : public std::false_type {}; template class is_required> : public std::false_type {}; +template +class is_required> : public is_required {}; + } // namespace parsing } // namespace rfl