Unverified Commit 27d8a0e3 authored by Dekken's avatar Dekken Committed by GitHub
Browse files

Refactor to allow MSVC without #define NOMINMAX (#905)

parent 97d1ae54
......@@ -120,8 +120,8 @@ typename std::enable_if<(std::is_same<T, unsigned char>::value ||
ConvertStreamTo(std::stringstream& stream, T& rhs) {
int num;
if ((stream >> std::noskipws >> num) && (stream >> std::ws).eof()) {
if (num >= std::numeric_limits<T>::min() &&
num <= std::numeric_limits<T>::max()) {
if (num >= (std::numeric_limits<T>::min)() &&
num <= (std::numeric_limits<T>::max)()) {
rhs = num;
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment