fix: compilation error on gcc
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
light7734 2025-09-10 13:16:14 +03:30
parent 961111c5da
commit 4d0a7f9b45
Signed by: light7734
GPG key ID: 8C30176798F1A6BA

View file

@ -119,21 +119,21 @@ struct Case
struct TestSuite
{
template<class TSuite>
constexpr TestSuite(TSuite suite)
constexpr TestSuite(TSuite body)
{
#ifndef LIGHT_SKIP_TESTS
details::Registry::register_suite(+suite);
details::Registry::register_suite(+body);
#endif
}
};
struct TestFuzzHarness
{
template<class TestFuzzHarness>
constexpr TestFuzzHarness(TestFuzzHarness suite)
template<class TestFuzzHarnessBody>
constexpr TestFuzzHarness(TestFuzzHarnessBody body)
{
#ifndef LIGHT_SKIP_FUZZ_TESTS
details::Registry::register_fuzz_harness(+suite);
details::Registry::register_fuzz_harness(+body);
#endif
}
};