Changed IF to ct_if because IF is sometimes used as a macro (ewww)

[SVN r13420]
This commit is contained in:
Douglas Gregor
2002-04-10 04:10:06 +00:00
parent 28984e4f23
commit 82226cb9d6
2 changed files with 9 additions and 9 deletions

View File

@ -37,7 +37,7 @@ namespace boost {
template<bool> struct truth {}; template<bool> struct truth {};
/* /*
* The IF implementation is temporary code. When a Boost metaprogramming * The ct_if implementation is temporary code. When a Boost metaprogramming
* library is introduced, Boost.Function will use it instead. * library is introduced, Boost.Function will use it instead.
*/ */
namespace intimate { namespace intimate {
@ -73,7 +73,7 @@ namespace boost {
} // end namespace intimate } // end namespace intimate
template<bool Condition, typename Then, typename Else> template<bool Condition, typename Then, typename Else>
struct IF struct ct_if
{ {
typedef typename intimate::Selector<Condition>::type select; typedef typename intimate::Selector<Condition>::type select;
typedef typename select::template Result<Then,Else>::type type; typedef typename select::template Result<Then,Else>::type type;
@ -137,20 +137,20 @@ namespace boost {
template<typename F> template<typename F>
class get_function_tag class get_function_tag
{ {
typedef typename IF<(is_pointer<F>::value), typedef typename ct_if<(is_pointer<F>::value),
function_ptr_tag, function_ptr_tag,
function_obj_tag>::type ptr_or_obj_tag; function_obj_tag>::type ptr_or_obj_tag;
typedef typename IF<(is_member_pointer<F>::value), typedef typename ct_if<(is_member_pointer<F>::value),
member_ptr_tag, member_ptr_tag,
ptr_or_obj_tag>::type ptr_or_obj_or_mem_tag; ptr_or_obj_tag>::type ptr_or_obj_or_mem_tag;
typedef typename IF<(is_reference_wrapper<F>::value), typedef typename ct_if<(is_reference_wrapper<F>::value),
function_obj_ref_tag, function_obj_ref_tag,
ptr_or_obj_or_mem_tag>::type or_ref_tag; ptr_or_obj_or_mem_tag>::type or_ref_tag;
public: public:
typedef typename IF<(is_stateless<F>::value), typedef typename ct_if<(is_stateless<F>::value),
stateless_function_obj_tag, stateless_function_obj_tag,
or_ref_tag>::type type; or_ref_tag>::type type;
}; };

View File

@ -168,7 +168,7 @@ namespace boost {
> >
struct BOOST_FUNCTION_GET_FUNCTION_INVOKER struct BOOST_FUNCTION_GET_FUNCTION_INVOKER
{ {
typedef typename IF<(is_void<R>::value), typedef typename ct_if<(is_void<R>::value),
BOOST_FUNCTION_VOID_FUNCTION_INVOKER< BOOST_FUNCTION_VOID_FUNCTION_INVOKER<
FunctionPtr, FunctionPtr,
R BOOST_FUNCTION_COMMA R BOOST_FUNCTION_COMMA
@ -189,7 +189,7 @@ namespace boost {
> >
struct BOOST_FUNCTION_GET_FUNCTION_OBJ_INVOKER struct BOOST_FUNCTION_GET_FUNCTION_OBJ_INVOKER
{ {
typedef typename IF<(is_void<R>::value), typedef typename ct_if<(is_void<R>::value),
BOOST_FUNCTION_VOID_FUNCTION_OBJ_INVOKER< BOOST_FUNCTION_VOID_FUNCTION_OBJ_INVOKER<
FunctionObj, FunctionObj,
R BOOST_FUNCTION_COMMA R BOOST_FUNCTION_COMMA
@ -210,7 +210,7 @@ namespace boost {
> >
struct BOOST_FUNCTION_GET_STATELESS_FUNCTION_OBJ_INVOKER struct BOOST_FUNCTION_GET_STATELESS_FUNCTION_OBJ_INVOKER
{ {
typedef typename IF<(is_void<R>::value), typedef typename ct_if<(is_void<R>::value),
BOOST_FUNCTION_STATELESS_VOID_FUNCTION_OBJ_INVOKER< BOOST_FUNCTION_STATELESS_VOID_FUNCTION_OBJ_INVOKER<
FunctionObj, FunctionObj,
R BOOST_FUNCTION_COMMA R BOOST_FUNCTION_COMMA