-Werror=old-style-cast
use of old-style cast to ‘T’ [-Werror=old-style-cast] 131 | rhs = (T)num;
This commit is contained in:
parent
cdf89fa352
commit
e20be84471
@ -128,7 +128,7 @@ ConvertStreamTo(std::stringstream& stream, T& rhs) {
|
|||||||
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 = (T)num;
|
rhs = static_cast<T>(num);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user