Files
unison/build-support/compiler-workarounds/ostream-operator-nullptr.h
2023-01-03 23:52:27 +00:00

17 lines
340 B
C++

#ifndef OSTREAM_OPERATOR_NULLPTR_H
#define OSTREAM_OPERATOR_NULLPTR_H
#include <cstddef>
#include <iostream>
namespace std
{
inline std::ostream&
operator<<(std::ostream& os, std::nullptr_t)
{
return os << "nullptr"; // whatever you want nullptr to show up as in the console
}
} // namespace std
#endif // OSTREAM_OPERATOR_NULLPTR_H