Boost C++ Libraries: Ticket #5328: Addition of increment and decrement operators to chrono::time_point https://svn.boost.org/trac10/ticket/5328 <p> From the viewpoint of generic interoperability fundamental operations are needed for possible generic recipient libraries of boost::chrono, that impose some fundamental requirements on their parameter types. E.g. Intervals and interval containers of Boost.Icl rely on the existence of an increment and decrement operator for intervals an interval containers of chrono::time_points. </p> <p> <code>time_point&amp; operator++()</code> is an incrementation of one least steppable unit for integral <code>rep</code> types and a unit step for floating point <code>rep</code> types. It repesents one tick of the clock and is equivalent with incrementing the time_point's <code>duration</code>. So it can be efficiently implemented by incrementation of the underlying <code>rep_</code> member. This ticket requests the addition of the four common in/decrementation operations: </p> <div class="wiki-code"><div class="code"><pre><span class="n">time_point</span><span class="o">&amp;</span> <span class="k">operator</span><span class="o">++</span><span class="p">()</span> <span class="p">;</span> <span class="n">time_point</span> <span class="k">operator</span><span class="o">++</span><span class="p">(</span><span class="kt">int</span><span class="p">);</span> <span class="n">time_point</span><span class="o">&amp;</span> <span class="k">operator</span><span class="o">--</span><span class="p">()</span> <span class="p">;</span> <span class="n">time_point</span> <span class="k">operator</span><span class="o">--</span><span class="p">(</span><span class="kt">int</span><span class="p">);</span> </pre></div></div> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5328 Trac 1.4.3 viboes Thu, 14 Apr 2011 20:36:48 GMT <link>https://svn.boost.org/trac10/ticket/5328#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5328#comment:1</guid> <description> <p> Fixed at Changeset <a class="missing ticket">#70074</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 14 Apr 2011 20:37:14 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5328#comment:2 https://svn.boost.org/trac10/ticket/5328#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket