bool is_sentinel() const
{
return milliseconds==~uintmax_t(0);
}
I have found this line of code in thread_data.hpp, I am wondering why is it ~uintmax_t(0)
instead of -1
?
EDIT:
if reason is to avoid compiler warnings, why don't use :
std::numeric_limits(decltype(milliseconds)>::max()
?