i writing a shared library ,containing code in template
i trying to explicitly instantiate functional & class
template ........But i am getting Error
#include<iostream>
#include "commonfile.h"
template<typename T>
const T & min(const T & a , const T & b)
{return (a < b ? a : b );}
template<typename T>
const T & max(const T & a , const T & b)
{return (a < b ? b : a );}
template int max(int,int);
template int min(int,int);
g++ -g commonfile.h commonfile.ccg++: compilation of header file requested
commonfile.cc:16: template-id `max<int, int>' for `int max(int, int)'
does not
match any template declaration
commonfile.cc:17: template-id `min<int, int>' for `int min(int, int)'
does not
match any template declaration