2
0
mirror of https://github.com/boostorg/phoenix.git synced 2026-02-21 03:12:09 +00:00

+ minor tweaks to improve compile time

[SVN r64356]
This commit is contained in:
Thomas Heller
2010-07-26 10:35:59 +00:00
parent 4dcfa56c50
commit a875985e08
3 changed files with 17 additions and 7 deletions

View File

@@ -380,7 +380,7 @@ namespace boost { namespace phoenix
template <typename Env>
typename boost::result_of<
eval_grammar(A0 const&, typename basic_environment<Env>::type&)
>::type
>::type
operator()(Env& env, A0 const& a0, A1 const& a1, A2 const& a2) const
{
typename basic_environment<Env>::type args(eval(a1, env), eval(a2, env));

View File

@@ -8,7 +8,6 @@
#define PHOENIX_CORE_ENVIRONMENT_HPP
#include <boost/phoenix/core/limits.hpp>
#include <boost/fusion/container/vector/vector.hpp>
#include <boost/fusion/sequence/intrinsic/at.hpp>
#include <boost/fusion/support/is_sequence.hpp>
#include <boost/phoenix/support/iterate.hpp>

View File

@@ -80,11 +80,22 @@
// this include will bring in mpl::vectorN and
// fusion::vectorN where N is PHOENIX_LIMIT
#include <boost/fusion/include/vector.hpp>
// for some reason, this must be included now to make
// detail/type_deduction.hpp compile. $$$ TODO: Investigate further $$$
#include <boost/mpl/vector/vector20.hpp>
#include <boost/fusion/container/vector/vector10.hpp>
#if PHOENIX_LIMIT > 10
#include <boost/fusion/container/vector/vector20.hpp>
#endif
#if PHOENIX_LIMIT > 20
#include <boost/fusion/container/vector/vector30.hpp>
#endif
#if PHOENIX_LIMIT > 30
#include <boost/fusion/container/vector/vector40.hpp>
#endif
#if PHOENIX_LIMIT > 40
#include <boost/fusion/container/vector/vector50.hpp>
#endif
#if PHOENIX_LIMIT > 50
#error "PHOENIX_LIMIT too high!"
#endif
#if !defined(BOOST_PROTO_MAX_ARITY)
#define BOOST_PROTO_MAX_ARITY BOOST_PP_INC(PHOENIX_COMPOSITE_LIMIT)