thliebig / openEMS

openEMS is a free and open-source electromagnetic field solver using the EC-FDTD method.
http://openEMS.de
GNU General Public License v3.0
430 stars 150 forks source link

Fix build error due to ambigous overload of isnan/isinf #34

Closed StefanBruens closed 6 years ago

StefanBruens commented 6 years ago

In case the code is build with -std=c++11, there may be conflicting definitions of isnan/isinf vs std::isnan/std::isinf, due to the using namespace std directive. This happens for glibc versions 2.25 and older, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48891 for details.

Signed-off-by: Stefan Brüns stefan.bruens@rwth-aachen.de