I dont understand how I can improve compilation time with 'extern template' which is introduced in C++0x.
I can just put extern before a template object in a header anbd then use it as normal in the source file? like this:
Code:#include <vector>
// bla.h
struct bla
{
void f();
extern template std::vector<int> vec;
};
//bla.cpp
void bla::f()
{
vec.push_back(3);
}