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:
Andrew McCreight 2015-09-10 13:17:00 +02:00
parent e252871c0c
commit d473e4a5ac

View File

@ -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