Resolve clang compiler error

"If constexpr" branches are evaluated at template instantiation time,
but static assertions receiving false are triggered even earlier.

Signed-off-by: Jeremy Ong <jcong@amazon.com>
monroegm-disable-blank-issue-2
Jeremy Ong 4 years ago
parent d1c06e9c80
commit 6ac74ad41e

@ -59,7 +59,7 @@ namespace AZ::Internal
else
{
static_assert(
false,
AZStd::is_move_constructible_v<Lambda> || AZStd::is_copy_constructible_v<Lambda>,
"Job lambdas must be either move or copy constructible. Please verify that all captured data is move or copy "
"constructible.");
}
@ -187,7 +187,7 @@ namespace AZ::Internal
else
{
static_assert(
false,
AZStd::is_move_constructible_v<Lambda> || AZStd::is_copy_constructible_v<Lambda>,
"Job lambdas must be either move or copy constructible. Please verify that all captured data is move or copy "
"constructible.");
}

Loading…
Cancel
Save