Код: Выделить всё
#include
consteval int f()
{
return 15;
}
template
consteval int g()
{
return V();
}
int main()
{
constexpr int i = g();
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79761332/can-i-pass-a-pointer-to-a-consteval-function-as-an-nttp-in-c[/url]
Мобильная версия