I want to use an array-literal of literals in a _Static_assert, but I get a compiler error saying this is not a constant expression
_Static_assert((int[]){2, 1, 0}[2], "err");
Is there a way to make it work?
I want to use an array-literal of literals in a _Static_assert, but I get a compiler error saying this is not a constant expression
_Static_assert((int[]){2, 1, 0}[2], "err");
Is there a way to make it work?
Copyright © 2021 Jogjafile Inc.