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

Subject: [Boost-bugs] [Boost C++ Libraries] #3358: return type of functions incorrect
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-19 21:42:38


#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 |
--------------------------+-------------------------------------------------
 maybe only documented incorrectly, but given the error messages it still
 takes a few years to figure that out.

 e.g. push_back, documented as:
 typename result_of::push_back<Sequence, T>::type push_back(
     Sequence const& seq, T const& t);

 when it's actually
 typename result_of::push_back<Sequence const, T>::type
     push_back(Sequence const& seq, T const& x)

 note the const.
 I'm not sure why the const is there, but if it is really intended that:
 result_of::push_back<seq_t,int>::type res=push_back(seq,4);
 should result in an error, this should be a major part of the
 documentation.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3358>
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