mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21: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>
|
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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue