LLVM Compiler 2.0: Warning with "using namespace std;"
Have you included any standard header files? Otherwise the compiler doesn't know about namespace std
.
Please post more code to clarify.
Moving the using namespace std to after the #include can eliminate this warning.
i solved this problem like this
#include <iostream>using namespace std;/// This function is used to ensure that a floating point number is/// not a NaN or infinity.inline bool b2IsValid(float32 x){ if (x != x) { // NaN. return false; } float32 infinity = std::numeric_limits <float32>::infinity(); return -infinity < x && x < infinity; return true;}