Author
anonymous
almost 5 years ago
Language
Compiler
Options
Author
anonymous
almost 5 years ago
$
prog.cc:9:15: error: static_assert expression is not an integral constant expression
static_assert(&s.i < (void*)&s.j, "");
^~~~~~~~~~~~~~~~~~
prog.cc:9:20: note: comparison between unequal pointers to void has unspecified result
static_assert(&s.i < (void*)&s.j, "");
^
1 error generated.
Exit Code:
1