From 96f7184528927848b076df0fd872b166c38ba32a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 17 Jan 2002 15:57:13 +0000 Subject: [PATCH] Untabified [SVN r12335] --- include/boost/function/function_base.hpp | 34 ++++++++++---------- include/boost/function/function_template.hpp | 8 ++--- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index b0cd109..527dcd4 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -82,13 +82,13 @@ namespace boost { template struct is_ref { - BOOST_STATIC_CONSTANT(bool, value = false); + BOOST_STATIC_CONSTANT(bool, value = false); }; template struct is_ref > { - BOOST_STATIC_CONSTANT(bool, value = true); + BOOST_STATIC_CONSTANT(bool, value = true); }; #else // no partial specialization typedef char yes_type; @@ -102,9 +102,9 @@ namespace boost { template struct is_ref { - static T* t; - BOOST_STATIC_CONSTANT(bool, - value = (sizeof(is_ref_tester(t)) == sizeof(yes_type))); + static T* t; + BOOST_STATIC_CONSTANT(bool, + value = (sizeof(is_ref_tester(t)) == sizeof(yes_type))); }; #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION @@ -165,28 +165,28 @@ namespace boost { template class get_function_tag { - typedef typename IF<(is_pointer::value), + typedef typename IF<(is_pointer::value), function_ptr_tag, function_obj_tag>::type ptr_or_obj_tag; - typedef typename IF<(is_member_pointer::value), - member_ptr_tag, - ptr_or_obj_tag>::type ptr_or_obj_or_mem_tag; + typedef typename IF<(is_member_pointer::value), + member_ptr_tag, + ptr_or_obj_tag>::type ptr_or_obj_or_mem_tag; public: - typedef typename IF<(is_ref::value), - function_obj_ref_tag, - ptr_or_obj_or_mem_tag>::type type; + typedef typename IF<(is_ref::value), + function_obj_ref_tag, + ptr_or_obj_or_mem_tag>::type type; }; // The trivial manager does nothing but return the same pointer (if we // are cloning) or return the null pointer (if we are deleting). inline any_pointer trivial_manager(any_pointer f, - functor_manager_operation_type op) + functor_manager_operation_type op) { - if (op == clone_functor_tag) - return f; - else - return any_pointer(reinterpret_cast(0)); + if (op == clone_functor_tag) + return f; + else + return any_pointer(reinterpret_cast(0)); } /** diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index c37e342..521e2d1 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -331,8 +331,8 @@ namespace boost { function_base::manager = &detail::function::functor_manager::manage; function_base::functor = function_base::manager(detail::function::any_pointer( - // should be a reinterpret cast, but some compilers - // insist on giving cv-qualifiers to free functions + // should be a reinterpret cast, but some compilers + // insist on giving cv-qualifiers to free functions (void (*)())(f) ), detail::function::clone_functor_tag); @@ -370,7 +370,7 @@ namespace boost { template void assign_to(const reference_wrapper& f, - detail::function::function_obj_ref_tag) + detail::function::function_obj_ref_tag) { if (!detail::function::has_empty_target(&f.get())) { typedef @@ -385,7 +385,7 @@ namespace boost { function_base::manager = &detail::function::trivial_manager; function_base::functor = function_base::manager(detail::function::any_pointer( - const_cast(&f.get())), + const_cast(&f.get())), detail::function::clone_functor_tag); } }