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