ndnboost: Also rename BOOST_ to NDNBOOST_
diff --git a/include/ndnboost/limits.hpp b/include/ndnboost/limits.hpp
index d3fddb7..cd55d9b 100644
--- a/include/ndnboost/limits.hpp
+++ b/include/ndnboost/limits.hpp
@@ -8,26 +8,26 @@
// See http://www.boost.org/libs/compatibility/index.html for documentation.
-#ifndef BOOST_LIMITS
-#define BOOST_LIMITS
+#ifndef NDNBOOST_LIMITS
+#define NDNBOOST_LIMITS
#include <ndnboost/config.hpp>
-#ifdef BOOST_NO_LIMITS
+#ifdef NDNBOOST_NO_LIMITS
# error "There is no std::numeric_limits suppport available."
#else
# include <limits>
#endif
-#if (defined(BOOST_HAS_LONG_LONG) && defined(BOOST_NO_LONG_LONG_NUMERIC_LIMITS)) \
- || (defined(BOOST_HAS_MS_INT64) && defined(BOOST_NO_MS_INT64_NUMERIC_LIMITS))
+#if (defined(NDNBOOST_HAS_LONG_LONG) && defined(NDNBOOST_NO_LONG_LONG_NUMERIC_LIMITS)) \
+ || (defined(NDNBOOST_HAS_MS_INT64) && defined(NDNBOOST_NO_MS_INT64_NUMERIC_LIMITS))
// Add missing specializations for numeric_limits:
-#ifdef BOOST_HAS_MS_INT64
-# define BOOST_LLT __int64
-# define BOOST_ULLT unsigned __int64
+#ifdef NDNBOOST_HAS_MS_INT64
+# define NDNBOOST_LLT __int64
+# define NDNBOOST_ULLT unsigned __int64
#else
-# define BOOST_LLT ::ndnboost::long_long_type
-# define BOOST_ULLT ::ndnboost::ulong_long_type
+# define NDNBOOST_LLT ::ndnboost::long_long_type
+# define NDNBOOST_ULLT ::ndnboost::ulong_long_type
#endif
#include <climits> // for CHAR_BIT
@@ -35,108 +35,108 @@
namespace std
{
template<>
- class numeric_limits<BOOST_LLT>
+ class numeric_limits<NDNBOOST_LLT>
{
public:
- BOOST_STATIC_CONSTANT(bool, is_specialized = true);
-#ifdef BOOST_HAS_MS_INT64
- static BOOST_LLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0x8000000000000000i64; }
- static BOOST_LLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0x7FFFFFFFFFFFFFFFi64; }
+ NDNBOOST_STATIC_CONSTANT(bool, is_specialized = true);
+#ifdef NDNBOOST_HAS_MS_INT64
+ static NDNBOOST_LLT min NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0x8000000000000000i64; }
+ static NDNBOOST_LLT max NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0x7FFFFFFFFFFFFFFFi64; }
#elif defined(LLONG_MAX)
- static BOOST_LLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return LLONG_MIN; }
- static BOOST_LLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return LLONG_MAX; }
+ static NDNBOOST_LLT min NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return LLONG_MIN; }
+ static NDNBOOST_LLT max NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return LLONG_MAX; }
#elif defined(LONGLONG_MAX)
- static BOOST_LLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return LONGLONG_MIN; }
- static BOOST_LLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return LONGLONG_MAX; }
+ static NDNBOOST_LLT min NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return LONGLONG_MIN; }
+ static NDNBOOST_LLT max NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return LONGLONG_MAX; }
#else
- static BOOST_LLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 1LL << (sizeof(BOOST_LLT) * CHAR_BIT - 1); }
- static BOOST_LLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ~(min)(); }
+ static NDNBOOST_LLT min NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return 1LL << (sizeof(NDNBOOST_LLT) * CHAR_BIT - 1); }
+ static NDNBOOST_LLT max NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return ~(min)(); }
#endif
- BOOST_STATIC_CONSTANT(int, digits = sizeof(BOOST_LLT) * CHAR_BIT -1);
- BOOST_STATIC_CONSTANT(int, digits10 = (CHAR_BIT * sizeof (BOOST_LLT) - 1) * 301L / 1000);
- BOOST_STATIC_CONSTANT(bool, is_signed = true);
- BOOST_STATIC_CONSTANT(bool, is_integer = true);
- BOOST_STATIC_CONSTANT(bool, is_exact = true);
- BOOST_STATIC_CONSTANT(int, radix = 2);
- static BOOST_LLT epsilon() throw() { return 0; };
- static BOOST_LLT round_error() throw() { return 0; };
+ NDNBOOST_STATIC_CONSTANT(int, digits = sizeof(NDNBOOST_LLT) * CHAR_BIT -1);
+ NDNBOOST_STATIC_CONSTANT(int, digits10 = (CHAR_BIT * sizeof (NDNBOOST_LLT) - 1) * 301L / 1000);
+ NDNBOOST_STATIC_CONSTANT(bool, is_signed = true);
+ NDNBOOST_STATIC_CONSTANT(bool, is_integer = true);
+ NDNBOOST_STATIC_CONSTANT(bool, is_exact = true);
+ NDNBOOST_STATIC_CONSTANT(int, radix = 2);
+ static NDNBOOST_LLT epsilon() throw() { return 0; };
+ static NDNBOOST_LLT round_error() throw() { return 0; };
- BOOST_STATIC_CONSTANT(int, min_exponent = 0);
- BOOST_STATIC_CONSTANT(int, min_exponent10 = 0);
- BOOST_STATIC_CONSTANT(int, max_exponent = 0);
- BOOST_STATIC_CONSTANT(int, max_exponent10 = 0);
+ NDNBOOST_STATIC_CONSTANT(int, min_exponent = 0);
+ NDNBOOST_STATIC_CONSTANT(int, min_exponent10 = 0);
+ NDNBOOST_STATIC_CONSTANT(int, max_exponent = 0);
+ NDNBOOST_STATIC_CONSTANT(int, max_exponent10 = 0);
- BOOST_STATIC_CONSTANT(bool, has_infinity = false);
- BOOST_STATIC_CONSTANT(bool, has_quiet_NaN = false);
- BOOST_STATIC_CONSTANT(bool, has_signaling_NaN = false);
- BOOST_STATIC_CONSTANT(bool, has_denorm = false);
- BOOST_STATIC_CONSTANT(bool, has_denorm_loss = false);
- static BOOST_LLT infinity() throw() { return 0; };
- static BOOST_LLT quiet_NaN() throw() { return 0; };
- static BOOST_LLT signaling_NaN() throw() { return 0; };
- static BOOST_LLT denorm_min() throw() { return 0; };
+ NDNBOOST_STATIC_CONSTANT(bool, has_infinity = false);
+ NDNBOOST_STATIC_CONSTANT(bool, has_quiet_NaN = false);
+ NDNBOOST_STATIC_CONSTANT(bool, has_signaling_NaN = false);
+ NDNBOOST_STATIC_CONSTANT(bool, has_denorm = false);
+ NDNBOOST_STATIC_CONSTANT(bool, has_denorm_loss = false);
+ static NDNBOOST_LLT infinity() throw() { return 0; };
+ static NDNBOOST_LLT quiet_NaN() throw() { return 0; };
+ static NDNBOOST_LLT signaling_NaN() throw() { return 0; };
+ static NDNBOOST_LLT denorm_min() throw() { return 0; };
- BOOST_STATIC_CONSTANT(bool, is_iec559 = false);
- BOOST_STATIC_CONSTANT(bool, is_bounded = true);
- BOOST_STATIC_CONSTANT(bool, is_modulo = true);
+ NDNBOOST_STATIC_CONSTANT(bool, is_iec559 = false);
+ NDNBOOST_STATIC_CONSTANT(bool, is_bounded = true);
+ NDNBOOST_STATIC_CONSTANT(bool, is_modulo = true);
- BOOST_STATIC_CONSTANT(bool, traps = false);
- BOOST_STATIC_CONSTANT(bool, tinyness_before = false);
- BOOST_STATIC_CONSTANT(float_round_style, round_style = round_toward_zero);
+ NDNBOOST_STATIC_CONSTANT(bool, traps = false);
+ NDNBOOST_STATIC_CONSTANT(bool, tinyness_before = false);
+ NDNBOOST_STATIC_CONSTANT(float_round_style, round_style = round_toward_zero);
};
template<>
- class numeric_limits<BOOST_ULLT>
+ class numeric_limits<NDNBOOST_ULLT>
{
public:
- BOOST_STATIC_CONSTANT(bool, is_specialized = true);
-#ifdef BOOST_HAS_MS_INT64
- static BOOST_ULLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0ui64; }
- static BOOST_ULLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0xFFFFFFFFFFFFFFFFui64; }
+ NDNBOOST_STATIC_CONSTANT(bool, is_specialized = true);
+#ifdef NDNBOOST_HAS_MS_INT64
+ static NDNBOOST_ULLT min NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0ui64; }
+ static NDNBOOST_ULLT max NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0xFFFFFFFFFFFFFFFFui64; }
#elif defined(ULLONG_MAX) && defined(ULLONG_MIN)
- static BOOST_ULLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULLONG_MIN; }
- static BOOST_ULLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULLONG_MAX; }
+ static NDNBOOST_ULLT min NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULLONG_MIN; }
+ static NDNBOOST_ULLT max NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULLONG_MAX; }
#elif defined(ULONGLONG_MAX) && defined(ULONGLONG_MIN)
- static BOOST_ULLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULONGLONG_MIN; }
- static BOOST_ULLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULONGLONG_MAX; }
+ static NDNBOOST_ULLT min NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULONGLONG_MIN; }
+ static NDNBOOST_ULLT max NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULONGLONG_MAX; }
#else
- static BOOST_ULLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0uLL; }
- static BOOST_ULLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ~0uLL; }
+ static NDNBOOST_ULLT min NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0uLL; }
+ static NDNBOOST_ULLT max NDNBOOST_PREVENT_MACRO_SUBSTITUTION (){ return ~0uLL; }
#endif
- BOOST_STATIC_CONSTANT(int, digits = sizeof(BOOST_LLT) * CHAR_BIT);
- BOOST_STATIC_CONSTANT(int, digits10 = (CHAR_BIT * sizeof (BOOST_LLT)) * 301L / 1000);
- BOOST_STATIC_CONSTANT(bool, is_signed = false);
- BOOST_STATIC_CONSTANT(bool, is_integer = true);
- BOOST_STATIC_CONSTANT(bool, is_exact = true);
- BOOST_STATIC_CONSTANT(int, radix = 2);
- static BOOST_ULLT epsilon() throw() { return 0; };
- static BOOST_ULLT round_error() throw() { return 0; };
+ NDNBOOST_STATIC_CONSTANT(int, digits = sizeof(NDNBOOST_LLT) * CHAR_BIT);
+ NDNBOOST_STATIC_CONSTANT(int, digits10 = (CHAR_BIT * sizeof (NDNBOOST_LLT)) * 301L / 1000);
+ NDNBOOST_STATIC_CONSTANT(bool, is_signed = false);
+ NDNBOOST_STATIC_CONSTANT(bool, is_integer = true);
+ NDNBOOST_STATIC_CONSTANT(bool, is_exact = true);
+ NDNBOOST_STATIC_CONSTANT(int, radix = 2);
+ static NDNBOOST_ULLT epsilon() throw() { return 0; };
+ static NDNBOOST_ULLT round_error() throw() { return 0; };
- BOOST_STATIC_CONSTANT(int, min_exponent = 0);
- BOOST_STATIC_CONSTANT(int, min_exponent10 = 0);
- BOOST_STATIC_CONSTANT(int, max_exponent = 0);
- BOOST_STATIC_CONSTANT(int, max_exponent10 = 0);
+ NDNBOOST_STATIC_CONSTANT(int, min_exponent = 0);
+ NDNBOOST_STATIC_CONSTANT(int, min_exponent10 = 0);
+ NDNBOOST_STATIC_CONSTANT(int, max_exponent = 0);
+ NDNBOOST_STATIC_CONSTANT(int, max_exponent10 = 0);
- BOOST_STATIC_CONSTANT(bool, has_infinity = false);
- BOOST_STATIC_CONSTANT(bool, has_quiet_NaN = false);
- BOOST_STATIC_CONSTANT(bool, has_signaling_NaN = false);
- BOOST_STATIC_CONSTANT(bool, has_denorm = false);
- BOOST_STATIC_CONSTANT(bool, has_denorm_loss = false);
- static BOOST_ULLT infinity() throw() { return 0; };
- static BOOST_ULLT quiet_NaN() throw() { return 0; };
- static BOOST_ULLT signaling_NaN() throw() { return 0; };
- static BOOST_ULLT denorm_min() throw() { return 0; };
+ NDNBOOST_STATIC_CONSTANT(bool, has_infinity = false);
+ NDNBOOST_STATIC_CONSTANT(bool, has_quiet_NaN = false);
+ NDNBOOST_STATIC_CONSTANT(bool, has_signaling_NaN = false);
+ NDNBOOST_STATIC_CONSTANT(bool, has_denorm = false);
+ NDNBOOST_STATIC_CONSTANT(bool, has_denorm_loss = false);
+ static NDNBOOST_ULLT infinity() throw() { return 0; };
+ static NDNBOOST_ULLT quiet_NaN() throw() { return 0; };
+ static NDNBOOST_ULLT signaling_NaN() throw() { return 0; };
+ static NDNBOOST_ULLT denorm_min() throw() { return 0; };
- BOOST_STATIC_CONSTANT(bool, is_iec559 = false);
- BOOST_STATIC_CONSTANT(bool, is_bounded = true);
- BOOST_STATIC_CONSTANT(bool, is_modulo = true);
+ NDNBOOST_STATIC_CONSTANT(bool, is_iec559 = false);
+ NDNBOOST_STATIC_CONSTANT(bool, is_bounded = true);
+ NDNBOOST_STATIC_CONSTANT(bool, is_modulo = true);
- BOOST_STATIC_CONSTANT(bool, traps = false);
- BOOST_STATIC_CONSTANT(bool, tinyness_before = false);
- BOOST_STATIC_CONSTANT(float_round_style, round_style = round_toward_zero);
+ NDNBOOST_STATIC_CONSTANT(bool, traps = false);
+ NDNBOOST_STATIC_CONSTANT(bool, tinyness_before = false);
+ NDNBOOST_STATIC_CONSTANT(float_round_style, round_style = round_toward_zero);
};
}