Boost C++ Libraries: Ticket #4845: end_of_month_day https://svn.boost.org/trac10/ticket/4845 <p> the last entry in section: <a href="http://www.boost.org/doc/libs/1_44_0/doc/html/date_time/gregorian.html#date_accessors">http://www.boost.org/doc/libs/1_44_0/doc/html/date_time/gregorian.html#date_accessors</a> </p> <p> is incorrect: </p> <pre class="wiki">date end_of_month_day() const </pre><p> it should read: </p> <pre class="wiki">date end_of_month() const </pre><p> supporting trials: </p> <pre class="wiki">// call : $ g++ -ggdb -Wall -pedantic -Weffc++ test.cc -o test // compiler : g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3 // library : Boost 1.44.0 #include &lt;iostream&gt; // standard io #include &lt;boost/date_time/gregorian/gregorian.hpp&gt; // may require -lboost_date_time int main() { namespace bg = boost::gregorian; // namespace aliases const bg::date feb(2000, bg::Feb, 1); const bg::date eom = feb.end_of_month(); // [1] //const bg::date eom = feb.end_of_month_day(); // [2] const int dom = eom.day(); // recover day-of-month std::cout &lt;&lt; "day-of-month : " &lt;&lt; dom &lt;&lt; std::endl; } // [1] works as expected // [2] test.cc:21: error: 'const class boost::gregorian::date' // has no member named 'end_of_month_day </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4845 Trac 1.4.3 Daniel James Fri, 12 Nov 2010 12:35:47 GMT owner, component changed https://svn.boost.org/trac10/ticket/4845#comment:1 https://svn.boost.org/trac10/ticket/4845#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matias Capeletto</span> to <span class="trac-author">az_sw_dude</span> </li> <li><strong>component</strong> <span class="trac-field-old">Documentation</span> → <span class="trac-field-new">date_time</span> </li> </ul> Ticket viboes Sat, 27 Nov 2010 15:03:49 GMT <link>https://svn.boost.org/trac10/ticket/4845#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:2</guid> <description> <p> This seems fixed in trunk, isn't it? </p> </description> <category>Ticket</category> </item> <item> <author>robbie@…</author> <pubDate>Sat, 27 Nov 2010 17:51:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:3</guid> <description> <p> I am the original poster. I just checked the following: <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/libs/date_time/xmldoc/date_class.xml"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/libs/date_time/xmldoc/date_class.xml</a> </p> <p> And it is still <strong>incorrect</strong>. Is this what you mean by "fixed in trunk"? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Katie Chan</dc:creator> <pubDate>Sun, 28 Nov 2010 22:07:59 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4845 https://svn.boost.org/trac10/ticket/4845 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">date_class.diff</span> </li> </ul> <p> Patch to date_class.diff </p> Ticket Katie Chan Sun, 28 Nov 2010 22:08:21 GMT attachment set https://svn.boost.org/trac10/ticket/4845 https://svn.boost.org/trac10/ticket/4845 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">date_class.2.diff</span> </li> </ul> <p> Patch to date_class.xml </p> Ticket Katie Chan Sun, 28 Nov 2010 22:11:56 GMT version, type changed https://svn.boost.org/trac10/ticket/4845#comment:4 https://svn.boost.org/trac10/ticket/4845#comment:4 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> <p> Um, those are the same diff. </p> Ticket robbie@… Mon, 29 Nov 2010 00:20:02 GMT <link>https://svn.boost.org/trac10/ticket/4845#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:5</guid> <description> <p> I am the original poster. Looks fixed as far as I can tell. Probably best to mark this one as resolved and I will try to remember to double check the next release. Thanks people. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Katie Chan</dc:creator> <pubDate>Mon, 29 Nov 2010 02:59:07 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:6</guid> <description> <p> It's not, look at line 339 &amp; line 345 of <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/libs/date_time/xmldoc/date_class.xml"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/libs/date_time/xmldoc/date_class.xml</a>. Someone with write access to trunk need to commit the changes. </p> </description> <category>Ticket</category> </item> <item> <author>robbie@…</author> <pubDate>Mon, 29 Nov 2010 08:47:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:7</guid> <description> <p> Original poster here. Regarding <a class="ticket" href="https://svn.boost.org/trac10/ticket/4845#comment:6" title="Comment 6">comment:6</a>, ktchan is currently correct. (Not sure how I got it wrong in <a class="ticket" href="https://svn.boost.org/trac10/ticket/4845#comment:5" title="Comment 5">comment:5</a>.) </p> </description> <category>Ticket</category> </item> <item> <author>robbie@…</author> <pubDate>Thu, 16 Dec 2010 23:00:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:8</guid> <description> <p> Original poster again. <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/libs/date_time/xmldoc/date_class.xml"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/libs/date_time/xmldoc/date_class.xml</a> is now correct. Does somebody want to change the status of this issue to resolved? I'll try and remember to check the next release. Thanks to all. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Katie Chan</dc:creator> <pubDate>Fri, 17 Dec 2010 02:07:38 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:9</guid> <description> <p> Erm, no ones made any changes to date_time on trunk for a few months. <a class="ticket" href="https://svn.boost.org/trac10/ticket/4845#comment:6" title="Comment 6">comment:6</a> still applies... </p> </description> <category>Ticket</category> </item> <item> <author>robbie@…</author> <pubDate>Fri, 17 Dec 2010 09:25:56 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:10</guid> <description> <p> As far as I can tell, <a href="http://www.boost.org/doc/libs/1_45_0/doc/html/date_time/gregorian.html">http://www.boost.org/doc/libs/1_45_0/doc/html/date_time/gregorian.html</a> remains <strong>incorrect</strong>. But that <a class="ext-link" href="http://svn.boost.org/svn/boost/trunk/libs/date_time/xmldoc/date_class.xml"><span class="icon">​</span>http://svn.boost.org/svn/boost/trunk/libs/date_time/xmldoc/date_class.xml</a> is <strong>fixed</strong>. Why not close this issue then? I promise to check the next release and open a <em>new report</em> if the incorrect function name, <code>end_of_month_day</code>, resurfaces then. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Katie Chan</dc:creator> <pubDate>Fri, 17 Dec 2010 13:18:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:11</guid> <description> <p> Because there's been no changes made to that file since long before 1.45 was released. If as you say, it's incorrect in 1.45, then it's still incorrect. </p> <p> As I pointed out in <a class="ticket" href="https://svn.boost.org/trac10/ticket/4845#comment:6" title="Comment 6">comment:6</a>, line 339 &amp; line 345 of that file still have <em>end_of_month_day</em>, so it is <strong>not fixed</strong>. </p> </description> <category>Ticket</category> </item> <item> <author>robbie@…</author> <pubDate>Fri, 17 Dec 2010 14:52:49 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:12</guid> <description> <p> I would like to retract my last <a class="ticket" href="https://svn.boost.org/trac10/ticket/4845#comment:10" title="Comment 10">comment:10</a>. I just rechecked. The svn copy is still incorrect. Sorry for the confusion (and thanks to ktchan for their patience). </p> </description> <category>Ticket</category> </item> <item> <author>robbie@…</author> <pubDate>Tue, 22 Feb 2011 17:06:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:13 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:13</guid> <description> <p> Original reporter here -- the next release 1.46.0 (<a href="http://www.boost.org/doc/libs/1_46_0/doc/html/date_time/gregorian.html#date_time.gregorian.date_class">http://www.boost.org/doc/libs/1_46_0/doc/html/date_time/gregorian.html#date_time.gregorian.date_class</a>) is out and this typo is still not fixed. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Wed, 30 Mar 2011 22:22:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4845#comment:14 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4845#comment:14</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/70766" title="Applied patches - Refs #3651 Refs #4845">[70766]</a>) Applied patches - Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3651" title="#3651: Patches: Missing declaration in date time examples (closed: fixed)">#3651</a> Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4845" title="#4845: Patches: end_of_month_day (closed: fixed)">#4845</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Mon, 04 Apr 2011 23:29:44 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4845#comment:15 https://svn.boost.org/trac10/ticket/4845#comment:15 <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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/70981" title="Merge to release. Fixes #3651 Fixes #4845">[70981]</a>) Merge to release. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3651" title="#3651: Patches: Missing declaration in date time examples (closed: fixed)">#3651</a> Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4845" title="#4845: Patches: end_of_month_day (closed: fixed)">#4845</a> </p> Ticket