vector/scalar pointer cast use c-style pointer cast instead of reinterpret_cast

This commit is contained in:
Chao Liu
2021-08-10 05:55:20 +00:00
parent 172036d728
commit 4f566c6221
4 changed files with 32 additions and 31 deletions

View File

@@ -34,7 +34,7 @@ std::ostream& LogRangeAsType(std::ostream& os, Range&& range, std::string delim)
first = false;
else
os << delim;
os << T{v};
os << static_cast<T>(v);
}
return os;
}