Есть ли более простой способ определения и инициализации этой таблицы?
Код: Выделить всё
#include
#include
#include
class Machine;
struct State
{
State() = default;
virtual ~State() = default;
virtual void enter() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79486030/what-is-the-most-straightforward-way-to-declare-this-class-member-map[/url]
Мобильная версия