A
Size: a a a
CD
#include <utility>
int func();
static_assert(
std::is_same_v<decltype(func), int()>
);
CD
#include <utility>
int func();
static_assert(
std::is_same_v<decltype(func), int()>
);
CD
CD
int()
вместо int (*)()
A
request for member 'data' in 'func', which is of non-class type 'int()'
SE
CD
int()
вместо int (*)()
int func();
int (&func_lref)() = func;
int (&&func_rref)() = func;
int (*func_ptr)() = &func;
const int (&var_lref) = 0;
const int (&&var_rref) = 0;
const int (*var_ptr) = &0;
A
DK
for(int i = 0; i < 1000000000; ++i){5 * 8;}
DK
for(int i = 0; i < 1000000000; ++i){5 * 8;}
A
int func();
int (&func_lref)() = func;
int (&&func_rref)() = func;
int (*func_ptr)() = &func;
const int (&var_lref) = 0;
const int (&&var_rref) = 0;
const int (*var_ptr) = &0;
&0
, у компилятора тоже других вопросов не возникло.