Added generic case
This commit is contained in:
parent
708463311e
commit
b363673f0e
|
@ -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<>
|
||||||
|
|
Loading…
Reference in New Issue