mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1203314 - Make operator<< a method on unused_t. r=froydnj
This prevents operator overload resolution from failing when this file is included in a file that uses Chromium IPC logging.
This commit is contained in:
parent
e252871c0c
commit
d473e4a5ac
@ -19,16 +19,13 @@ namespace mozilla {
|
||||
//
|
||||
struct unused_t
|
||||
{
|
||||
template<typename T>
|
||||
inline void
|
||||
operator<<(const T& /*unused*/) const {}
|
||||
};
|
||||
|
||||
extern MFBT_DATA const unused_t unused;
|
||||
|
||||
template<typename T>
|
||||
inline void
|
||||
operator<<(const unused_t& /*unused*/, const T& /*unused*/)
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
#endif // __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user