Код: Выделить всё
THE_MACRO(Foo, 1);
THE_MACRO(Foo, 2);
// Wanted outcome:
auto foo1 = std::make_shared(Foo());
auto foo2 = std::make_shared(Foo());
std::vector objects;
Источник: https://stackoverflow.com/questions/781 ... te-classes
Код: Выделить всё
THE_MACRO(Foo, 1);
THE_MACRO(Foo, 2);
// Wanted outcome:
auto foo1 = std::make_shared(Foo());
auto foo2 = std::make_shared(Foo());
std::vector objects;