Skip to content

Commit

Permalink
Add constexpr to function decl
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfidel committed Oct 17, 2024
1 parent 11c4943 commit b6ddb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/general/test_policies.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void test_policy_instance(const Policy& policy)
#endif // TEST_DPCPP_BACKEND_PRESENT

template<typename Policy>
void assert_is_execution_policy()
constexpr void assert_is_execution_policy()
{
static_assert(oneapi::dpl::is_execution_policy<Policy>::value, "wrong result for oneapi::dpl::is_execution_policy");
static_assert(oneapi::dpl::is_execution_policy_v<Policy>, "wrong result for oneapi::dpl::is_execution_policy_v");
Expand Down

0 comments on commit b6ddb5c

Please sign in to comment.