Рассмотрим этот пример:
Код: Выделить всё
#include
#include
#include
template
class Foo
{
};
int main()
{
// These definitions of Foo shall be produced by the macro
auto foo1 = std::make_shared(Foo());
auto foo2 = std::make_shared(Foo());
// The variants shall be done with respect to the instantiations of Foo
std::vector objects;
return 0;
}
Или макросы вообще не способны обрабатывать типы данных в качестве входных данных?
Подробнее здесь: https://stackoverflow.com/questions/781 ... s-are-also