От: | Videoman | https://hts.tv/ | |
Дата: | 18.05.20 22:43 | ||
Оценка: |
static constexpr bool Test(int value); // объявление
....
static_assert(Test(0));
....
static constexpr bool Test(int value) // определение
{
return value == 0;
}
Если определение дать сразу, то все ок. Мне кажется это сакс какой-то, это так и должно быть?error C2131: expression did not evaluate to a constant