Bug-List: call of overloaded 'sqrt(u16&)' is ambiguous

来源:互联网 发布:长沙软件职业学院地址 编辑:程序博客网 时间:2024/05/16 18:39

I think that is because in newer versions of C++sqrt is overloaded (argument can be doublefloat or long double) and you pass in an int. Just cast the argument to double to make it clear:

int finalBit = sqrt( (double) (sieve.size()) ) + 1;
0 0