Рассмотрим следующий код:
static constexpr int make_const(const int i){
return i;
}
void t1(const int i)
{
constexpr int ii = make_const(i); // error occurs here (i is not a constant expression)
std::cout
Подробнее здесь: https://stackoverflow.com/questions/235 ... expression
Мобильная версия