get rid of apply_if; Spirit 1.6.x doesn't need it

[SVN r25115]
This commit is contained in:
Aleksey Gurtovoy
2004-09-15 13:53:23 +00:00
parent 92170583d9
commit 6c519870c0

View File

@@ -1,53 +0,0 @@
//-----------------------------------------------------------------------------
// boost/mpl/apply_if.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2004
// Robert Ramey
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that the above copyright notice appears in all copies and
// that both the copyright notice and this permission notice appear in
// supporting documentation. No representations are made about the
// suitability of this software for any purpose. It is provided "as is"
// without express or implied warranty.
// apply_if is deprecated. Use eval_if instead. This is only included
// to support older code like spirit 1.6
#ifndef BOOST_MPL_APPLY_IF_HPP_INCLUDED
#define BOOST_MPL_APPLY_IF_HPP_INCLUDED
#include "boost/mpl/eval_if.hpp"
namespace boost {
namespace mpl {
template<
typename C
, typename F1
, typename F2
>
struct apply_if
{
typedef BOOST_DEDUCED_TYPENAME eval_if<C,F1,F2>::type type;
};
// (almost) copy & paste in order to save one more
// recursively nested template instantiation to user
template<
bool C
, typename F1
, typename F2
>
struct apply_if_c
{
typedef BOOST_DEDUCED_TYPENAME eval_if_c<C,F1,F2>::type type;
};
} // namespace mpl
} // namespace boost
#endif // BOOST_MPL_APPLY_IF_HPP_INCLUDED