I've gotten some code in C++ that I am trying to uderstand, but there is one part that I just can't grasp, even though I've searched around about it on the Internet. My question is what this means:
if (!(T() < x))
In the struct:
struct Positive_Check_Except
{
template<typename T>
static bool validate(const T& x)
{
if (!(T() < x))
throw check_error(std::to_string(x) + " not positive exception");
return true;
}
};