martinmoene / lest

A modern, C++11-native, single-file header-only, tiny framework for unit-tests, TDD and BDD (includes C++98 variant)
Boost Software License 1.0
390 stars 45 forks source link

fixed compilation errors in lest.hpp #8

Closed miguelmartin75 closed 10 years ago

miguelmartin75 commented 10 years ago

I kept getting the following compilation error:

lest/lest.hpp:278:93: error: call to
      'abs' is ambiguous
  ...rhs.magnitude_ ) < rhs.epsilon_ * ( rhs.scale_ + (std::max)( std::abs( lhs ), std:...

This was fixed by adding #include <cmath>