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:
@@ -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));
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user