Ticket #3987: config-proto.patch

File config-proto.patch, 6.5 KB (added by Daniel James, 13 years ago)
  • boost/proto/generate.hpp

     
    9999                /// \param expr A Proto expression
    100100                /// \return expr
    101101                template<typename Expr>
    102                 #ifdef BOOST_HAS_DECLTYPE
     102                #ifndef BOOST_NO_DECLTYPE
    103103                Expr
    104104                #else
    105105                Expr const &
  • boost/proto/traits.hpp

     
    542542                    /// \pre <tt>matches\<Expr, terminal\<T\> \>::::value</tt> is \c true.
    543543                    /// \return \c e
    544544                    /// \throw nothrow
    545                     #ifdef BOOST_HAS_DECLTYPE
     545                    #ifndef BOOST_NO_DECLTYPE
    546546                    result_type
    547547                    #else
    548548                    typename impl::expr_param
     
    612612                    /// \pre <tt>matches\<Expr, nullary_expr\<Tag, T\> \>::::value</tt> is \c true.
    613613                    /// \return \c e
    614614                    /// \throw nothrow
    615                     #ifdef BOOST_HAS_DECLTYPE
     615                    #ifndef BOOST_NO_DECLTYPE
    616616                    result_type
    617617                    #else
    618618                    typename impl::expr_param
  • boost/proto/extends.hpp

     
    357357        };                                                                                          \
    358358        /**/
    359359
    360     #ifdef BOOST_HAS_VARIADIC_TMPL
     360    #ifndef BOOST_NO_VARIADIC_TEMPLATES
    361361        #define BOOST_PROTO_EXTENDS_FUNCTION_CONST()                                                \
    362362            BOOST_PROTO_EXTENDS_FUNCTION_()                                                         \
    363363            BOOST_PROTO_DEFINE_FUN_OP_VARIADIC_IMPL_(1)                                             \
     
    473473            // the operator() overloads, which is more efficient.
    474474            BOOST_PROTO_EXTENDS_FUNCTION_()
    475475
    476         #ifdef BOOST_HAS_VARIADIC_TMPL
     476        #ifndef BOOST_NO_VARIADIC_TEMPLATES
    477477            BOOST_PROTO_DEFINE_FUN_OP_VARIADIC_IMPL_(1)
    478478        #else
    479479            /// INTERNAL ONLY
     
    516516            // the operator() overloads, which is more efficient.
    517517            BOOST_PROTO_EXTENDS_FUNCTION_()
    518518
    519         #ifdef BOOST_HAS_VARIADIC_TMPL
     519        #ifndef BOOST_NO_VARIADIC_TEMPLATES
    520520            BOOST_PROTO_DEFINE_FUN_OP_VARIADIC_IMPL_(0)
    521521            BOOST_PROTO_DEFINE_FUN_OP_VARIADIC_IMPL_(1)
    522522        #else
  • boost/proto/detail/decltype.hpp

     
    3535#include <boost/utility/enable_if.hpp>
    3636#include <boost/proto/repeat.hpp>
    3737
    38 #ifdef BOOST_HAS_DECLTYPE
     38#ifndef BOOST_NO_DECLTYPE
    3939# define BOOST_PROTO_DECLTYPE_(EXPR, TYPE) typedef decltype(EXPR) TYPE;
    4040#else
    4141# define BOOST_PROTO_DECLTYPE_NESTED_TYPEDEF_TPL_(NESTED, EXPR)                                     \
  • boost/proto/matches.hpp

     
    570570
    571571                    /// \param expr An expression
    572572                    /// \return \c e
    573                     #ifdef BOOST_HAS_DECLTYPE
     573                    #ifndef BOOST_NO_DECLTYPE
    574574                    result_type
    575575                    #else
    576576                    typename impl::expr_param
     
    609609                    /// \param e An expression
    610610                    /// \pre <tt>matches\<Expr,not_\>::::value</tt> is \c true.
    611611                    /// \return \c e
    612                     #ifdef BOOST_HAS_DECLTYPE
     612                    #ifndef BOOST_NO_DECLTYPE
    613613                    result_type
    614614                    #else
    615615                    typename impl::expr_param
  • boost/proto/transform/arg.hpp

     
    3838            /// \param e The current expression.
    3939            /// \return \c e
    4040            /// \throw nothrow
    41             #ifdef BOOST_HAS_DECLTYPE
     41            #ifndef BOOST_NO_DECLTYPE
    4242            result_type
    4343            #else
    4444            typename impl::expr_param
     
    7575            /// \param s The current state.
    7676            /// \return \c s
    7777            /// \throw nothrow
    78             #ifdef BOOST_HAS_DECLTYPE
     78            #ifndef BOOST_NO_DECLTYPE
    7979            result_type
    8080            #else
    8181            typename impl::state_param
     
    113113            /// \param d The current data.
    114114            /// \return \c d
    115115            /// \throw nothrow
    116             #ifdef BOOST_HAS_DECLTYPE
     116            #ifndef BOOST_NO_DECLTYPE
    117117            result_type
    118118            #else
    119119            typename impl::data_param
     
    154154            /// \param e The current expression.
    155155            /// \return <tt>proto::child_c\<N\>(e)</tt>
    156156            /// \throw nothrow
    157             #ifdef BOOST_HAS_DECLTYPE
     157            #ifndef BOOST_NO_DECLTYPE
    158158            result_type
    159159            #else
    160160            typename result_of::child_c<typename impl::expr_param, N>::type
     
    194194            /// \param e The current expression.
    195195            /// \return <tt>proto::value(e)</tt>
    196196            /// \throw nothrow
    197             #ifdef BOOST_HAS_DECLTYPE
     197            #ifndef BOOST_NO_DECLTYPE
    198198            typename mpl::if_c<is_array<result_type>::value, result_type &, result_type>::type
    199199            #else
    200200            typename result_of::value<typename impl::expr_param>::type
  • boost/proto/transform/pass_through.hpp

     
    6767                /// \param e An expression
    6868                /// \return \c e
    6969                /// \throw nothrow
    70                 #ifdef BOOST_HAS_DECLTYPE
     70                #ifndef BOOST_NO_DECLTYPE
    7171                result_type
    7272                #else
    7373                typename pass_through_impl::expr_param