mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Update old style cast from (T) to static_cast<T>.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user