Remove some boost dependencies

This commit is contained in:
sfc-gh-tclinkenbeard 2021-06-21 13:38:12 -07:00
parent ab1404b201
commit a424abe5c2
3 changed files with 3 additions and 6 deletions

View File

@ -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;

View File

@ -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

View File

@ -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 {};