From b6ddb5c6eef5a52a3f526e4561e4d623f4eb1c12 Mon Sep 17 00:00:00 2001 From: Adam Fidel Date: Thu, 17 Oct 2024 08:43:52 -0700 Subject: [PATCH] Add constexpr to function decl --- test/general/test_policies.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/general/test_policies.pass.cpp b/test/general/test_policies.pass.cpp index e0143de214..b6972c535d 100644 --- a/test/general/test_policies.pass.cpp +++ b/test/general/test_policies.pass.cpp @@ -46,7 +46,7 @@ void test_policy_instance(const Policy& policy) #endif // TEST_DPCPP_BACKEND_PRESENT template -void assert_is_execution_policy() +constexpr void assert_is_execution_policy() { static_assert(oneapi::dpl::is_execution_policy::value, "wrong result for oneapi::dpl::is_execution_policy"); static_assert(oneapi::dpl::is_execution_policy_v, "wrong result for oneapi::dpl::is_execution_policy_v");