"...composable_kernel.git" did not exist on "36f6966ad5ef38e0fcbeef25364266f985bef0c3"
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 || ...@@ -120,8 +120,8 @@ typename std::enable_if<(std::is_same<T, unsigned char>::value ||
ConvertStreamTo(std::stringstream& stream, T& rhs) { ConvertStreamTo(std::stringstream& stream, T& rhs) {
int num; int num;
if ((stream >> std::noskipws >> num) && (stream >> std::ws).eof()) { if ((stream >> std::noskipws >> num) && (stream >> std::ws).eof()) {
if (num >= std::numeric_limits<T>::min() && if (num >= (std::numeric_limits<T>::min)() &&
num <= std::numeric_limits<T>::max()) { num <= (std::numeric_limits<T>::max)()) {
rhs = num; rhs = num;
return true; 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