mirror of
https://github.com/boostorg/phoenix.git
synced 2026-02-18 02:12:09 +00:00
various files, take out NO_SPECIALIZE_CUSTOM_TERMINAL
This commit is contained in:
@@ -138,7 +138,7 @@ namespace boost { namespace phoenix
|
||||
: is_nullary<T>
|
||||
{};
|
||||
|
||||
#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
//#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
template <typename T>
|
||||
struct is_nullary<custom_terminal<T>,
|
||||
typename custom_terminal<T>::_is_default_custom_terminal >
|
||||
@@ -174,13 +174,13 @@ namespace boost { namespace phoenix
|
||||
: mpl::true_
|
||||
{};
|
||||
*/
|
||||
#else
|
||||
/*#else
|
||||
template <typename T>
|
||||
struct is_nullary<custom_terminal<T> >
|
||||
: mpl::true_
|
||||
{};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
*/
|
||||
template <typename T>
|
||||
struct is_nullary<custom_terminal<actor<T> > >
|
||||
: evaluator
|
||||
|
||||
@@ -45,9 +45,9 @@ namespace boost { namespace phoenix
|
||||
struct custom_terminal<detail::nothing, Dummy>
|
||||
{
|
||||
typedef void result_type;
|
||||
#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
//#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
typedef void _is_nothing_custom_terminal; // fix for #7730
|
||||
#endif
|
||||
//#endif
|
||||
template <typename Context>
|
||||
void operator()(detail::nothing, Context &) const
|
||||
{
|
||||
|
||||
@@ -90,9 +90,9 @@ namespace boost { namespace phoenix
|
||||
struct custom_terminal<boost::reference_wrapper<T> >
|
||||
{
|
||||
typedef T &result_type;
|
||||
#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
//#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
typedef void _is_reference_custom_terminal; // fix for #7730
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
template <typename Context>
|
||||
T &operator()(boost::reference_wrapper<T> r, Context &) const
|
||||
|
||||
@@ -49,11 +49,11 @@ namespace boost { namespace phoenix
|
||||
|
||||
template <typename T, typename Dummy>
|
||||
struct custom_terminal
|
||||
#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
//#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
{
|
||||
typedef void _is_default_custom_terminal; // fix for #7730
|
||||
}
|
||||
#endif
|
||||
//#endif
|
||||
;
|
||||
|
||||
namespace tag {
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace boost { namespace phoenix
|
||||
{};
|
||||
}
|
||||
|
||||
#ifdef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
/*#ifdef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
namespace result_of
|
||||
{
|
||||
template <typename Key>
|
||||
@@ -58,8 +58,8 @@ namespace boost { namespace phoenix
|
||||
: mpl::false_
|
||||
{};
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
*/
|
||||
namespace detail
|
||||
{
|
||||
struct scope_is_nullary_actions
|
||||
@@ -95,9 +95,9 @@ namespace boost { namespace phoenix
|
||||
{
|
||||
template <typename Sig>
|
||||
struct result;
|
||||
#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
//#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
typedef void _is_local_var_custom_terminal; // fix for #7730
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
template <typename This, typename Local, typename Context>
|
||||
struct result<This(Local, Context)>
|
||||
|
||||
@@ -90,9 +90,9 @@ namespace boost { namespace phoenix
|
||||
struct custom_terminal<detail::rethrow, Dummy>
|
||||
{
|
||||
typedef void result_type;
|
||||
#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
//#ifndef BOOST_PHOENIX_NO_SPECIALIZE_CUSTOM_TERMINAL
|
||||
typedef void _is_throw_custom_terminal; // fix for #7730
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
template <typename Context>
|
||||
void operator()(detail::rethrow, Context &) const
|
||||
|
||||
Reference in New Issue
Block a user