diff options
author | Andrew Morrow <acm@10gen.com> | 2012-11-29 15:42:24 -0500 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2012-12-03 11:18:48 -0500 |
commit | 8f531c5b0af1e386ab142dba3349c895ab8d9b76 (patch) | |
tree | 32e5a2bd7c371b231c8d330536cf266d600e7d66 /src/mongo/base/string_data.h | |
parent | 88650825c651c2a9e358f1b59b1ee7aa2aa4cd8e (diff) | |
download | mongo-8f531c5b0af1e386ab142dba3349c895ab8d9b76.tar.gz |
Add stream out for StringData so it works in unit test asserts
Diffstat (limited to 'src/mongo/base/string_data.h')
-rw-r--r-- | src/mongo/base/string_data.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/base/string_data.h b/src/mongo/base/string_data.h index 08dca1f4068..2a72fb09586 100644 --- a/src/mongo/base/string_data.h +++ b/src/mongo/base/string_data.h @@ -17,6 +17,7 @@ #include <algorithm> // for min #include <cstring> +#include <iosfwd> #include <string> namespace mongo { @@ -135,4 +136,6 @@ namespace mongo { return lhs.compare(rhs) >= 0; } + std::ostream& operator<<(std::ostream& stream, const StringData& value); + } // namespace mongo |