summaryrefslogtreecommitdiff
path: root/src/mongo/platform
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2014-08-22 12:41:06 -0400
committerAndrew Morrow <acm@mongodb.com>2014-09-08 17:44:20 -0400
commit09878cb3cb2ec6224824b5ebcf8747413e3802e8 (patch)
tree17096931afd825787d1cd47b3f2eaffff325bedf /src/mongo/platform
parentde8ad641914eeb56367d06fd465c17ad5e6a3e26 (diff)
downloadmongo-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.h3
-rw-r--r--src/mongo/platform/endian_test.cpp2
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 };