Hi,
I have a template class, parametrized by types K and V. I want to overload a static function in this template. I've tried like this :
template < int, typename V >
static int hashU(int s) {
return s ;
}
template < float, typename V >
static int hashU(float s) {
return floor(s) ;
}
But it doesn't compile well, I have the following error :
hashT.tpp:60:12: erreur: ‘float’ is not a valid type for a template non-type parameter
How can I solve it ? Thanks for your help :)
This syntax works pretty well, thank you so much :D