diff options
author | Andrew Morrow <acm@mongodb.com> | 2014-08-22 12:41:06 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2014-09-08 17:44:20 -0400 |
commit | 09878cb3cb2ec6224824b5ebcf8747413e3802e8 (patch) | |
tree | 17096931afd825787d1cd47b3f2eaffff325bedf /src/mongo/platform | |
parent | de8ad641914eeb56367d06fd465c17ad5e6a3e26 (diff) | |
download | mongo-09878cb3cb2ec6224824b5ebcf8747413e3802e8.tar.gz |
SERVER-15174 Provide some improved semantics for data_cursor and data_view
Diffstat (limited to 'src/mongo/platform')
-rw-r--r-- | src/mongo/platform/endian.h | 3 | ||||
-rw-r--r-- | src/mongo/platform/endian_test.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/platform/endian.h b/src/mongo/platform/endian.h index fed9ca95c69..0d644d6b512 100644 --- a/src/mongo/platform/endian.h +++ b/src/mongo/platform/endian.h @@ -171,8 +171,6 @@ namespace endian { ((v & 0xFF00000000000000ULL) >> 56); } -} // namespace endian - template<typename T> struct ByteOrderConverter; @@ -452,6 +450,7 @@ namespace endian { return ByteOrderConverter<T>::littleToNative(t); } +} // namespace endian } // namespace mongo #undef MONGO_UINT16_SWAB diff --git a/src/mongo/platform/endian_test.cpp b/src/mongo/platform/endian_test.cpp index 733f9c69b0c..ab12b8c3fa3 100644 --- a/src/mongo/platform/endian_test.cpp +++ b/src/mongo/platform/endian_test.cpp @@ -33,6 +33,8 @@ namespace mongo { + using namespace endian; + TEST( EndianTest, TestSlow16 ) { uint8_t le_buf[] = { 0x01, 0x02 }; uint8_t be_buf[] = { 0x02, 0x01 }; |