From 26e3b70407ff0fc950e4e1019733c6c3c1fccbac Mon Sep 17 00:00:00 2001 From: Sam4uk Date: Wed, 9 Feb 2022 00:06:36 +0200 Subject: [PATCH] Update old style cast from (T) to static_cast. --- include/yaml-cpp/node/convert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/yaml-cpp/node/convert.h b/include/yaml-cpp/node/convert.h index 21619a4..8ab0cd4 100644 --- a/include/yaml-cpp/node/convert.h +++ b/include/yaml-cpp/node/convert.h @@ -128,7 +128,7 @@ ConvertStreamTo(std::stringstream& stream, T& rhs) { if ((stream >> std::noskipws >> num) && (stream >> std::ws).eof()) { if (num >= (std::numeric_limits::min)() && num <= (std::numeric_limits::max)()) { - rhs = (T)num; + rhs = static_cast(num); return true; } }