mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Define output operator << taking TranslatableString
This commit is contained in:
parent
d2631307a6
commit
c2c308733b
@ -567,6 +567,13 @@ namespace std
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow TranslatableString to work with shift output operators
|
||||||
|
template< typename Sink >
|
||||||
|
inline Sink &operator <<( Sink &sink, const TranslatableString &str )
|
||||||
|
{
|
||||||
|
return sink << str.Translation();
|
||||||
|
}
|
||||||
|
|
||||||
// Require calls to the one-argument constructor to go through this
|
// Require calls to the one-argument constructor to go through this
|
||||||
// distinct global function name. This makes it easier to locate and
|
// distinct global function name. This makes it easier to locate and
|
||||||
// review the uses of this function, separately from the uses of the type.
|
// review the uses of this function, separately from the uses of the type.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user