Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc: In function 'int main()':
prog.cc:18:5: error: static assertion failed
static_assert(std::is_reference_v<decltype(foo(&x1))>);
^~~~~~~~~~~~~
prog.cc:17:14: warning: unused variable 'x2' [-Wunused-variable]
X x1{1}, x2{2}, x3{3};
^~
prog.cc:17:21: warning: unused variable 'x3' [-Wunused-variable]
X x1{1}, x2{2}, x3{3};
^~
Exit Code:
1