Added generic case

This commit is contained in:
Gianpaolo Palma 2014-10-14 09:28:28 +00:00
parent 708463311e
commit b363673f0e
1 changed files with 5 additions and 1 deletions

View File

@ -9,13 +9,17 @@ namespace vcg
{ {
template<typename SCALAR> template<typename SCALAR>
struct Precision struct Precision
{}; {
static int digits() {return 0;}
static const char* typeName() {return "";}
};
template<> template<>
struct Precision<float> struct Precision<float>
{ {
static int digits() {return 7;} static int digits() {return 7;}
static const char* typeName() {return "float";} static const char* typeName() {return "float";}
}; };
template<> template<>