I wanted to created a define
function like that:
#define TEST0(x) ((x==0)?0.00000001:x)
But Visual recommend me to use a constexpr
like that:
template<typename T>
constexpr auto TEST0(T x) { return ((x==0)?0.00000001:x); }
What's the advantage?