Skip to content

Commit

Permalink
Minor cleanup in enum_utils_test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Apr 27, 2023
1 parent ae436a6 commit fe65ff8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/enum_utils_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,18 @@ TEST(RichEnum, BoolNegate)

static_assert(IsStructuralType<TestRichEnum1>);

namespace
{
template <TestRichEnum1 /*MY_ENUM*/>
struct RichEnumConstantsCanBeUsedAsATemplateParameter
{
};

template <TestRichEnum1 /*MY_ENUM*/>
static constexpr void rich_enum_constants_can_be_used_as_a_template_parameter()
constexpr void rich_enum_constants_can_be_used_as_a_template_parameter()
{
}
} // namespace

TEST(RichEnum, UsageAsTemplateParameter)
{
Expand Down

0 comments on commit fe65ff8

Please sign in to comment.