ndnboost: Also rename BOOST_ to NDNBOOST_
diff --git a/include/ndnboost/type_traits/function_traits.hpp b/include/ndnboost/type_traits/function_traits.hpp
index 59ca94f..41260db 100644
--- a/include/ndnboost/type_traits/function_traits.hpp
+++ b/include/ndnboost/type_traits/function_traits.hpp
@@ -6,8 +6,8 @@
//
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
-#ifndef BOOST_TT_FUNCTION_TRAITS_HPP_INCLUDED
-#define BOOST_TT_FUNCTION_TRAITS_HPP_INCLUDED
+#ifndef NDNBOOST_TT_FUNCTION_TRAITS_HPP_INCLUDED
+#define NDNBOOST_TT_FUNCTION_TRAITS_HPP_INCLUDED
#include <ndnboost/config.hpp>
#include <ndnboost/type_traits/is_function.hpp>
@@ -15,7 +15,7 @@
namespace ndnboost {
-#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
+#ifndef NDNBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
namespace detail {
template<typename Function> struct function_traits_helper;
@@ -23,14 +23,14 @@
template<typename R>
struct function_traits_helper<R (*)(void)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 0);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 0);
typedef R result_type;
};
template<typename R, typename T1>
struct function_traits_helper<R (*)(T1)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 1);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 1);
typedef R result_type;
typedef T1 arg1_type;
typedef T1 argument_type;
@@ -39,7 +39,7 @@
template<typename R, typename T1, typename T2>
struct function_traits_helper<R (*)(T1, T2)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 2);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 2);
typedef R result_type;
typedef T1 arg1_type;
typedef T2 arg2_type;
@@ -50,7 +50,7 @@
template<typename R, typename T1, typename T2, typename T3>
struct function_traits_helper<R (*)(T1, T2, T3)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 3);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 3);
typedef R result_type;
typedef T1 arg1_type;
typedef T2 arg2_type;
@@ -60,7 +60,7 @@
template<typename R, typename T1, typename T2, typename T3, typename T4>
struct function_traits_helper<R (*)(T1, T2, T3, T4)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 4);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 4);
typedef R result_type;
typedef T1 arg1_type;
typedef T2 arg2_type;
@@ -72,7 +72,7 @@
typename T5>
struct function_traits_helper<R (*)(T1, T2, T3, T4, T5)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 5);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 5);
typedef R result_type;
typedef T1 arg1_type;
typedef T2 arg2_type;
@@ -85,7 +85,7 @@
typename T5, typename T6>
struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 6);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 6);
typedef R result_type;
typedef T1 arg1_type;
typedef T2 arg2_type;
@@ -99,7 +99,7 @@
typename T5, typename T6, typename T7>
struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6, T7)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 7);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 7);
typedef R result_type;
typedef T1 arg1_type;
typedef T2 arg2_type;
@@ -114,7 +114,7 @@
typename T5, typename T6, typename T7, typename T8>
struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6, T7, T8)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 8);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 8);
typedef R result_type;
typedef T1 arg1_type;
typedef T2 arg2_type;
@@ -130,7 +130,7 @@
typename T5, typename T6, typename T7, typename T8, typename T9>
struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6, T7, T8, T9)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 9);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 9);
typedef R result_type;
typedef T1 arg1_type;
typedef T2 arg2_type;
@@ -148,7 +148,7 @@
typename T10>
struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
{
- BOOST_STATIC_CONSTANT(unsigned, arity = 10);
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = 10);
typedef R result_type;
typedef T1 arg1_type;
typedef T2 arg2_type;
@@ -227,10 +227,10 @@
template<typename Function>
struct function_traits
{
- BOOST_STATIC_CONSTANT(unsigned, arity = (sizeof(ndnboost::detail::function_arity_helper((Function*)0))-1));
+ NDNBOOST_STATIC_CONSTANT(unsigned, arity = (sizeof(ndnboost::detail::function_arity_helper((Function*)0))-1));
};
-#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
+#endif // NDNBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
}
-#endif // BOOST_TT_FUNCTION_TRAITS_HPP_INCLUDED
+#endif // NDNBOOST_TT_FUNCTION_TRAITS_HPP_INCLUDED