Questions tagged [explicit-instantiation]

Explicit instantiation lets you create an instantiation of a C++ templated class or function without actually using it in your code.

Explicit instantiation lets you create an instantiation of a C++ templated class or function without actually using it in your code.

It is designed to optimize template libraries usage providing some of (mostly used) template instances in compiled binary form instead of source code form. This will reduce compile and link time for end-user applications.

Also it could be used to encapsulate template function definition in translation unit instead of included header.

136 questions
-2
votes
1 answer

Compilation error "expected unqualified-id" when working with templates

For my code template Signal; template Signal; template Signal; template Signal< std::complex >; template Signal< int >; I get compilation errors error at signal_T.cpp:437: error: expected unqualified-id before â;â…
ponnu
  • 31
  • 1
1 2 3
9
10