Код: Выделить всё
struct A;
namespace ns { int f(A&&); }
struct A {
friend int ns::f(A&&);
};
int x = f(A{});
демо: https://godbolt.org/z/59Pdzcc9G
Какой компилятор правильный?
Подробнее здесь: https://stackoverflow.com/questions/798 ... und-by-arg
Мобильная версия