We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97d1ae5 commit 5863e9bCopy full SHA for 5863e9b
include/yaml-cpp/node/convert.h
@@ -120,15 +120,16 @@ typename std::enable_if<(std::is_same<T, unsigned char>::value ||
120
ConvertStreamTo(std::stringstream& stream, T& rhs) {
121
int num;
122
if ((stream >> std::noskipws >> num) && (stream >> std::ws).eof()) {
123
- if (num >= std::numeric_limits<T>::min() &&
124
- num <= std::numeric_limits<T>::max()) {
+ if (num >= (std::numeric_limits<T>::min)() &&
+ num <= (std::numeric_limits<T>::max)()) {
125
rhs = num;
126
return true;
127
}
128
129
return false;
130
131
132
+
133
template <typename T>
134
typename std::enable_if<!(std::is_same<T, unsigned char>::value ||
135
std::is_same<T, signed char>::value), bool>::type
0 commit comments