relaxxx
relaxxx

Reputation: 7834

force compiler to generate whole class template

how can I force compiler, to generate whole class template? not just methods I use? I am sure I read it in template complete guide book, but I can not find it. It was one-line statement.

I am not able to ask google the right question.

Thank you!

Upvotes: 1

Views: 351

Answers (1)

R. Martinho Fernandes
R. Martinho Fernandes

Reputation: 234654

You can explicitly instantiate a class template with something like this:

template class Foo<Argument1,Argument2>;

Upvotes: 5

Related Questions