Re: [Boost-bugs] [Boost C++ Libraries] #3358: return type of functions incorrect

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3358: return type of functions incorrect
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-19 22:35:49


#3358: return type of functions incorrect
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: djowel
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: fusion
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: const return |
--------------------------+-------------------------------------------------

Comment(by steven_watanabe):

 Actually, I think it would be better if fusion::push_back were overloaded
 to allow either const or non-const arguments, like

 {{{
     template <typename Sequence, typename T>
     inline typename result_of::push_back<Sequence, T>::type
     push_back(Sequence & seq, T const& x);

     template <typename Sequence, typename T>
     inline typename result_of::push_back<Sequence const, T>::type
     push_back(Sequence const& seq, T const& x);
 }}}

 Regardless, result_of::push_back ought to work correctly for non-const
 arguments. If push_back always adds const, then so should
 result_of::push_back.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3358#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC