diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2015-03-26 18:00:00 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2015-03-26 18:30:00 -0400 |
commit | ef7f17be8085488ba965286fb97927a7ce3600e7 (patch) | |
tree | 48caef5aaf331f1035c02489a78feab2ccaef789 /src/mongo/base | |
parent | 66c14dd70dd4427fef0d424b9675570614e13ca7 (diff) | |
download | mongo-ef7f17be8085488ba965286fb97927a7ce3600e7.tar.gz |
SERVER-9563 Add support for config.h header
Diffstat (limited to 'src/mongo/base')
-rw-r--r-- | src/mongo/base/data_view.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/base/data_view.h b/src/mongo/base/data_view.h index abc6b57f4c6..5801ca26635 100644 --- a/src/mongo/base/data_view.h +++ b/src/mongo/base/data_view.h @@ -27,6 +27,8 @@ #pragma once +#include "mongo/config.h" + #include <cstring> #include <type_traits> @@ -49,7 +51,7 @@ namespace mongo { template<typename T> const ConstDataView& readNative(T* t, size_t offset = 0) const { -#if MONGO_HAVE_STD_IS_TRIVIALLY_COPYABLE +#if MONGO_CONFIG_HAVE_STD_IS_TRIVIALLY_COPYABLE static_assert(std::is_trivially_copyable<T>::value, "Type for DataView::readNative must be trivially copyable"); #endif @@ -95,7 +97,7 @@ namespace mongo { template<typename T> DataView& writeNative(const T& value, std::size_t offset = 0) { -#if MONGO_HAVE_STD_IS_TRIVIALLY_COPYABLE +#if MONGO_CONFIG_HAVE_STD_IS_TRIVIALLY_COPYABLE static_assert(std::is_trivially_copyable<T>::value, "Type for DataView::writeNative must be trivially copyable"); #endif |