mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
libutil: Use c++ style cast
This commit is contained in:
parent
55f06b6f30
commit
b0f4ac29d3
1 changed files with 1 additions and 2 deletions
|
@ -312,8 +312,7 @@ public:
|
|||
template<typename T>
|
||||
std::ostream & operator <<(std::ostream & str, const BaseSetting<T> & opt)
|
||||
{
|
||||
str << (const T &) opt;
|
||||
return str;
|
||||
return str << static_cast<const T &>(opt);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue