Why would this ever be needed?

To explicitly instantiate a template whether it be class or function without creating the object or calling the function, just creating the definition??
Please help!
When you distribute libraries. Because otherwise the code will not be generated in the library for specific instances.
What do you mean can you provide a small example?
std::vector<bool>
I bet the standard library's a,so,lib,dll,dynl does contain binary for it.
Yes compiler will recreate necessary bits for each compilation unit, but then the linker will throw out all but one.
Topic archived. No new replies allowed.