Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

$
prog.cc:21:16: error: static_assert expression is not an integral constant expression
static_assert( test() );
               ^~~~~~
prog.cc:12:17: note: cast from 'void *' is not allowed in a constant expression
        return *static_cast<aggr<member>*>(static_cast<void*>(this));
                ^
prog.cc:19:23: note: in call to '&scope.mem->scope()'
    return &scope.mem.scope() == &scope;
                      ^
prog.cc:21:16: note: in call to 'test()'
static_assert( test() );
               ^
1 error generated.
Exit Code:
1