M
mathieu
Hello,
I am trying to work around the issue with floating point as template
parameter. Basically all I want is be able to take advantage of the
compile time optimization. For instance how would one write something
like this with a single class declaration:
struct s_05
{
static const double TF = 0.5;
bool f(double v) { return v > TF; }
};
struct s_06
{
static const double TF = 0.6;
bool f(double v) { return v > TF; }
};
.... and so on and so forth
thanks !
-Mathieu
I am trying to work around the issue with floating point as template
parameter. Basically all I want is be able to take advantage of the
compile time optimization. For instance how would one write something
like this with a single class declaration:
struct s_05
{
static const double TF = 0.5;
bool f(double v) { return v > TF; }
};
struct s_06
{
static const double TF = 0.6;
bool f(double v) { return v > TF; }
};
.... and so on and so forth
thanks !
-Mathieu