December 11, 2003 bug with sqrt | ||||
---|---|---|---|---|
| ||||
#include <cmath> void test() { double b = 100; double c = std::sqrt( b ); } Compiled with version 8.38.9 Error: ambiguous reference to symbol Had: std::_inline_sqrt(float ) and: std::_inline_sqrt(long double ) Compiled with version 3.39.1 Error: undefined identifier 'std' Current workaround is omitting std:: |
December 11, 2003 Re: bug with sqrt | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve | Oop! The error of both version are the same Error: ambiguous reference to symbol Had: std::_inline_sqrt(float ) and: std::_inline_sqrt(long double ) In article <br9ca2$q8m$1@digitaldaemon.com>, Steve says... > > >#include <cmath> > >void test() >{ >double b = 100; >double c = std::sqrt( b ); >} > >Compiled with version 8.38.9 > >Error: ambiguous reference to symbol >Had: std::_inline_sqrt(float ) >and: std::_inline_sqrt(long double ) > >Compiled with version 3.39.1 >Error: undefined identifier 'std' > >Current workaround is omitting std:: > > |
Copyright © 1999-2021 by the D Language Foundation