Efficient inline templates and C++
- by Darryl Gove
I've talked before about calling inline templates from C++, I've also talked about calling inline templates efficiently. This time I want to talk about efficiently calling inline templates from C++.
The obvious starting point is that I need to declare the inline templates as being extern "C":
extern "C"
{
int mytemplate(int);
}
This…