Код: Выделить всё
#include
#include
template
class Y
{
static constexpr int data = 10;
template
friend U pp();
};
template
requires std::is_default_constructible_v
T pp()
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79427568/how-to-properly-define-friend-function-with-requires-expression[/url]
Мобильная версия