Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
incompatible-template.cpp
Go to the documentation of this file.
1 template <typename T>
2 T muladd(T a, T b, T c)
3 {
4  // Template definition with incorrect semantics.
5  return a + b + c;
6 }
7 
8 // Explicitly instantiate 'muladd<T>' for 'int's.
9 template int muladd<int>(int, int, int);
T muladd(T a, T b, T c)
template int muladd< int >(int, int, int)