Re: Problem about math library and the standard namespace of Apple Clang

2016-05-12 Thread John McCall
> On May 12, 2016, at 7:00 AM, 军其 胡 wrote: > Hi, all. > > My question is about the convention of the standard namespace in C++. > firstly, let's read the following classic example in C/C++: > > ,- > | #include > | #include > | > | double fabs(double a) > | { > |

Problem about math library and the standard namespace of Apple Clang

2016-05-12 Thread 军其 胡
Hi, all. My question is about the convention of the standard namespace in C++. firstly, let's read the following classic example in C/C++: ,- | #include | #include | | double fabs(double a) | { | return -1.0*a; | } | | int main() | { | double b=fabs(3.0); |