Unverified Commit 26e3b704 authored by Sam4uk's avatar Sam4uk Committed by GitHub
Browse files

Update old style cast from (T) to static_cast<T>.

parent cdf89fa3
...@@ -128,7 +128,7 @@ ConvertStreamTo(std::stringstream& stream, T& rhs) { ...@@ -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;
} }
} }
......
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