Boost C++ Libraries: Ticket #11168: boost::date_time::subsecond_duration does not handle boost::date_time::special_values graceful https://svn.boost.org/trac10/ticket/11168 <p> Hi, </p> <p> I just was victim to using boost::date_time::millisec and others in an error prone way, by passing into special values like neg_infin as part of testing. </p> <p> For me it should at least avoid such abuse at compile time, because such errors are quite hard to find. I already patched our code, so plz find patch attached. </p> <p> Greetz, ILo. </p> <p> Ofc one may also allow to pass in those special values into subsecond_duration. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11168 Trac 1.4.3 ingo.loehken@… Sun, 05 Apr 2015 10:07:15 GMT attachment set https://svn.boost.org/trac10/ticket/11168 https://svn.boost.org/trac10/ticket/11168 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">25098.patch</span> </li> </ul> <p> quickfix </p> Ticket viboes Tue, 28 Apr 2015 15:00:49 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11168#comment:1 https://svn.boost.org/trac10/ticket/11168#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">az_sw_dude</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">date_time</span> </li> </ul> Ticket James E. King, III Thu, 28 Dec 2017 17:58:03 GMT owner, status changed https://svn.boost.org/trac10/ticket/11168#comment:2 https://svn.boost.org/trac10/ticket/11168#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">az_sw_dude</span> to <span class="trac-author">James E. King, III</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket James E. King, III Thu, 28 Dec 2017 18:39:10 GMT <link>https://svn.boost.org/trac10/ticket/11168#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11168#comment:3</guid> <description> <p> This affects hours(), minutes(), seconds(), all of the sub-second duration constructors, and also the time_duration constructor itself, since boost::date_time::special_values is an enum and therefore converts automatically to an integral. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>James E. King, III</dc:creator> <pubDate>Fri, 29 Dec 2017 02:26:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11168#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11168#comment:4</guid> <description> <p> <a class="ext-link" href="https://github.com/boostorg/date_time/pull/64"><span class="icon">​</span>https://github.com/boostorg/date_time/pull/64</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>James E. King, III</dc:creator> <pubDate>Thu, 18 Jan 2018 13:46:19 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/11168#comment:5 https://svn.boost.org/trac10/ticket/11168#comment:5 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.67.0</span> </li> </ul> Ticket James E. King, III Sun, 28 Jan 2018 16:24:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11168#comment:6 https://svn.boost.org/trac10/ticket/11168#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fix merged to master; resolved. </p> Ticket