ComputationalRadiationPhysics / libSplash

libSplash - Simple Parallel file output Library for Accumulating Simulation data using Hdf5
GNU Lesser General Public License v3.0
15 stars 15 forks source link

Fix abs(size_t) Compile Error on Red Hat #147

Closed ax3l closed 9 years ago

ax3l commented 9 years ago

System

Red Hat 4.4.7-3 + GCC 4.4.7 (Scientific Linux 6 on LBL's Lawrencium)

Error message

DCHelper.hpp:151: error: call of overloaded 'abs(size_t)' is ambiguous

abs(size_t) lives in <cstdlib> (not <cmath>) and is not in the std:: namespace [1]

[1] http://compgroups.net/comp.lang.c++.moderated/std-abs-int-ambiguous/195658

ax3l commented 9 years ago

@f-schmitt-zih a gentle reminder :) red hat deserves some love, too.

f-schmitt commented 9 years ago

For sure! :)