/* Item.h */ struct Item { std::string name; Item(std::string _name) : name( std::move(_name) ) { } }; /* main.cpp */ /* ... */ const int amount_of_items =