#define Create_Function(Type) \
template void Function( std::vector<boost::shared_ptr<Type>>&)
Create_Function(std::string);
I have seen the above code in legacy code but have no idea what the meaning of it. It is neither a regular non-specialized function definition nor a full specialized function definition.
Any idea?
It does explicit template instantiation (see MSDN)
Given a general function template
The call to the macro
Create_Function(std::string);
will expand to