Вот соответствующая часть моего заголовка (
Код: Выделить всё
Player.hКод: Выделить всё
namespace Football {
class Player {
public:
Player(Player&& other) noexcept; // line 41
Player& operator=(Player&& other) noexcept; // line 41
// ... other members
};
}
Код: Выделить всё
Player.cppКод: Выделить всё
Player::Player(Player&& other) noexcept
: id(GenerateId()),
name(std::move(other.name)),
age(other.age),
nationality(std::move(other.nationality)),
origin(std::move(other.origin)),
position(std::move(other.position)),
height(other.height),
weight(other.weight),
totalGames(other.totalGames),
totalGoals(other.totalGoals),
totalAssists(other.totalAssists),
marketValue(other.marketValue) // line 63
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79813149/clangd-expected-at-end-of-declaration-list[/url]
Мобильная версия