2
0
mirror of https://github.com/boostorg/phoenix.git synced 2026-02-14 13:02:10 +00:00

+ the environment concept

+ better result_of modularization

[SVN r62712]
This commit is contained in:
Joel de Guzman
2010-06-10 06:52:06 +00:00
parent b4cde4f58b
commit 024f81c3ee
2 changed files with 10 additions and 12 deletions

View File

@@ -11,8 +11,8 @@
namespace boost { namespace phoenix
{
// template <typename T, typename Enable = void>
// struct is_environment : fusion::is_sequence<T> {};
template <typename T, typename Enable = void>
struct is_environment : fusion::traits::is_sequence<T> {};
namespace result_of
{

View File

@@ -12,26 +12,24 @@
namespace boost { namespace phoenix
{
///////////////////////////////////////////////////////////////////////////////
//
// null_actor
//
// A actor that does nothing (a "bum", if you will :-).
//
///////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
//
// null_actor
//
// A actor that does nothing (a "bum", if you will :-).
//
////////////////////////////////////////////////////////////////////////////
struct null_actor
{
typedef void result_type;
template <typename Env>
void
eval(Env const&) const
void eval(Env const&) const
{
}
};
as_actor<null_actor, actor>::result_type const nothing = {};
}}
#endif