Merge pull request #5054 from sfc-gh-tclinkenbeard/remove-boost-dependencies
Remove some boost dependencies
This commit is contained in:
commit
b76be3def3
|
@ -19,12 +19,11 @@
|
|||
*/
|
||||
|
||||
#include "Tuple.h"
|
||||
#include <boost/static_assert.hpp>
|
||||
|
||||
namespace FDB {
|
||||
// The floating point operations depend on this using the IEEE 754 standard.
|
||||
BOOST_STATIC_ASSERT(std::numeric_limits<float>::is_iec559);
|
||||
BOOST_STATIC_ASSERT(std::numeric_limits<double>::is_iec559);
|
||||
static_assert(std::numeric_limits<float>::is_iec559);
|
||||
static_assert(std::numeric_limits<double>::is_iec559);
|
||||
|
||||
const size_t Uuid::SIZE = 16;
|
||||
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include "flow/DeterministicRandom.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
uint64_t DeterministicRandom::gen64() {
|
||||
uint64_t curr = next;
|
||||
next = (uint64_t(random()) << 32) ^ random();
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#include <exception>
|
||||
#include <map>
|
||||
#include <boost/preprocessor/assert_msg.hpp>
|
||||
#include <boost/preprocessor/facilities/is_empty.hpp>
|
||||
#include <boost/preprocessor/control/if.hpp>
|
||||
#include "flow/Platform.h"
|
||||
|
@ -221,7 +220,7 @@ void assert_num_impl(char const* a_nm,
|
|||
EXTERNC void breakpoint_me();
|
||||
|
||||
#ifdef FDB_CLEAN_BUILD
|
||||
#define NOT_IN_CLEAN BOOST_STATIC_ASSERT_MSG(0, "This code can not be enabled in a clean build.");
|
||||
#define NOT_IN_CLEAN static_assert(false, "This code can not be enabled in a clean build.");
|
||||
#else
|
||||
#define NOT_IN_CLEAN
|
||||
#endif
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <functional>
|
||||
#include <vector>
|
||||
#include <variant>
|
||||
#include <boost/variant.hpp>
|
||||
|
||||
template <class T, typename = void>
|
||||
struct is_fb_function_t : std::false_type {};
|
||||
|
|
Loading…
Reference in New Issue