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>
This commit is contained in:
Jeremy Ong
2021-08-04 03:12:17 -06:00
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.");
}