Re: [Boost-bugs] [Boost C++ Libraries] #11067: boost::gregorian::date_iterator missing postfix operators ++ and --

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11067: boost::gregorian::date_iterator missing postfix operators ++ and --
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-12-27 19:39:12


#11067: boost::gregorian::date_iterator missing postfix operators ++ and --
-------------------------+-------------------------------------------------
  Reporter: dkochin@… | Owner: James E. King, III
      Type: Feature | Status: assigned
  Requests |
 Milestone: To Be | Component: date_time
  Determined |
   Version: Boost | Severity: Problem
  1.57.0 | Keywords: boost::gregorian::date,
Resolution: | boost::gregorian::date_iterator
-------------------------+-------------------------------------------------
Changes (by James E. King, III):

 * status: new => assigned
 * owner: az_sw_dude => James E. King, III

Comment:

 Test (unsure if return is correct; will move into unit test before
 submitting PR):
 {{{
 #include <boost/date_time/gregorian/gregorian.hpp>

 int main()
 {
     boost::gregorian::date some_date(2007, 8, 9);
     boost::gregorian::month_iterator m_i(some_date, 1);
     boost::gregorian::greg_month m(1);
     m = *m_i++;
     return !(m == 8);
 }
 }}}

 When building with gcc-7.2:
 {{{
 error: no ‘operator++(int)’ declared for postfix ‘++’
 [-fpermissive]
      m = *m_i++;
           ~~~^~
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/11067#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-12-27 20:02:44 UTC