OpenMP vs. <math.h>
Dave Korn
dave.korn.cygwin@googlemail.com
Tue Jan 12 21:27:00 GMT 2010
Yaakov (Cygwin/X) wrote:
> But thinking about this further, there's just no way that these macros
> would ever be safe with C++. Take this for a simple example:
>
> $ cat > log2.cxx <<_EOF_
> #include <cmath>
> #include <iostream>
>
> int
> main(void)
> {
> std::cout << ::log2(42) << std::endl;
> return 0;
> }
> _EOF_
>
> $ g++ -c log2.cxx
> log2.cxx: In function ‘int main()’:
> log2.cxx:8: error: expected id-expression before ‘(’ token
This is PR35104.
cheers,
DaveK
More information about the Newlib
mailing list