Changeset 44710


Ignore:
Timestamp:
Apr 22, 2008, 4:43:49 AM (10 years ago)
Author:
Eric Niebler
Message:

const-qualify return of expr<>::make()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proto/v4/boost/proto/expr.hpp

    r44677 r44710  
    194194            ///
    195195            template<BOOST_PP_ENUM_PARAMS(ARG_COUNT, typename A)>
    196             static expr make(BOOST_PP_ENUM_BINARY_PARAMS(ARG_COUNT, A, const &a))
     196            static expr const make(BOOST_PP_ENUM_BINARY_PARAMS(ARG_COUNT, A, const &a))
    197197            {
    198198                expr that = {BOOST_PP_ENUM_PARAMS(ARG_COUNT, a)};
     
    204204            ///
    205205            template<typename A0>
    206             static expr make(A0 &a0)
     206            static expr const make(A0 &a0)
    207207            {
    208208                expr that = {a0};
     
    213213            ///
    214214            template<typename A0, std::size_t N>
    215             static expr make(A0 (&a0)[N], typename detail::if_is_array<proto_child0, N>::type = 0)
     215            static expr const make(A0 (&a0)[N], typename detail::if_is_array<proto_child0, N>::type = 0)
    216216            {
    217217                expr that;
     
    223223            ///
    224224            template<typename A0, std::size_t N>
    225             static expr make(A0 const (&a0)[N], typename detail::if_is_array<proto_child0, N>::type = 0)
     225            static expr const make(A0 const (&a0)[N], typename detail::if_is_array<proto_child0, N>::type = 0)
    226226            {
    227227                expr that;
Note: See TracChangeset for help on using the changeset viewer.