We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ba0525 commit 75944d8Copy full SHA for 75944d8
src/mongo/bson/util/bswap.h
@@ -184,6 +184,12 @@ namespace mongo {
184
\
185
friend Nullstream& operator<<( Nullstream& ost, MYTYPE val ) { \
186
return ost << T(val); \
187
+ } \
188
+ \
189
+ std::string toString() const { \
190
+ std::stringstream ss; \
191
+ ss << this; \
192
+ return ss.str(); \
193
}
194
195
src/mongo/logger/logstream_builder.h
@@ -103,7 +103,7 @@ namespace logger {
103
104
template <typename T>
105
LogstreamBuilder& operator<<(const T& x) {
106
- //stream() << x.toString();
+ stream() << x.toString();
107
return *this;
108
109
0 commit comments