diff --git a/include/yaml-cpp/node/convert.h b/include/yaml-cpp/node/convert.h index bbe0b7d..34ca898 100644 --- a/include/yaml-cpp/node/convert.h +++ b/include/yaml-cpp/node/convert.h @@ -120,8 +120,8 @@ typename std::enable_if<(std::is_same::value || ConvertStreamTo(std::stringstream& stream, T& rhs) { int num; if ((stream >> std::noskipws >> num) && (stream >> std::ws).eof()) { - if (num >= std::numeric_limits::min() && - num <= std::numeric_limits::max()) { + if (num >= (std::numeric_limits::min)() && + num <= (std::numeric_limits::max)()) { rhs = num; return true; }