1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 01:11:15 +02:00

libutil: Use c++ style cast

This commit is contained in:
Jacek Galowicz 2023-10-19 18:25:17 +01:00
parent 55f06b6f30
commit b0f4ac29d3

View file

@ -312,8 +312,7 @@ public:
template<typename T> template<typename T>
std::ostream & operator <<(std::ostream & str, const BaseSetting<T> & opt) std::ostream & operator <<(std::ostream & str, const BaseSetting<T> & opt)
{ {
str << (const T &) opt; return str << static_cast<const T &>(opt);
return str;
} }
template<typename T> template<typename T>