cnl
cnl copied to clipboard
Cannot always compare scaled_integer to 0
Example resulting in opaque error:
auto negative(cnl::scaled_integer<int, cnl::power<-31>> s)
{
return s < 0;
}
Worse, elastic_integer doesn't seem to help:
#include <cnl/all.h>
auto negative(cnl::scaled_integer<cnl::elastic_integer<31>, cnl::power<-31>> s)
{
return s < 0;
}
Related: #431.