Boost C++ Libraries: Ticket #8739: Compile error in bool boost::local_time::custom_time_zone_base<CharT>::has_dst() const with C++11 mode enabled https://svn.boost.org/trac10/ticket/8739 <p> With C++11 mode enabled (the "-std=c++0x" compiler option) using GCC v4.6.2 and boost v1.53 there is a compile error due to the fact that boost::shared_ptr&lt;&gt;'s bool conversion operator is now "explicit". </p> <p> /export/usr/local/domdev/gbolton/local_repo/wiz/local/boost/1.53.0/include/boost/date_time/local_time/custom_time_zone.hpp: In member function 'bool boost::local_time::custom_time_zone_base&lt;CharT&gt;::has_dst() const [with CharT = char]': ../src/DateTime.cpp:636:1: instantiated from here /export/usr/local/domdev/gbolton/local_repo/wiz/local/boost/1.53.0/include/boost/date_time/local_time/custom_time_zone.hpp:67:30: error: cannot convert 'const boost::shared_ptr&lt;boost::date_time::dst_day_calc_rule&lt;boost::gregorian::date&gt; &gt;' to 'bool' in return </p> <p> The fix is trivial and so I won't insult anyone's intelligence by providing it here! </p> <p> Thanks for providing such useful and good quality libraries, </p> <p> Gawain Bolton </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8739 Trac 1.4.3 anonymous Thu, 27 Jun 2013 15:23:02 GMT summary changed https://svn.boost.org/trac10/ticket/8739#comment:1 https://svn.boost.org/trac10/ticket/8739#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Compiler error in bool boost::local_time::custom_time_zone_base&lt;CharT&gt;::has_dst() const with C++11 mode enabled</span> → <span class="trac-field-new">Compile error in bool boost::local_time::custom_time_zone_base&lt;CharT&gt;::has_dst() const with C++11 mode enabled</span> </li> </ul> Ticket Marshall Clow Thu, 27 Jun 2013 15:28:33 GMT owner, version changed https://svn.boost.org/trac10/ticket/8739#comment:2 https://svn.boost.org/trac10/ticket/8739#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">az_sw_dude</span> to <span class="trac-author">Marshall Clow</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.53.0</span> → <span class="trac-field-new">Boost 1.55.0</span> </li> </ul> <p> This was fixed on trunk in <a class="changeset" href="https://svn.boost.org/trac10/changeset/84626" title="In C++11 the shared_ptr -&gt; bool conversion is explicit. In custom time ...">[84626]</a>, but apparently not merged to the release branch. </p> Ticket Marshall Clow Thu, 27 Jun 2013 15:29:08 GMT status, version, milestone changed https://svn.boost.org/trac10/ticket/8739#comment:3 https://svn.boost.org/trac10/ticket/8739#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.55.0</span> → <span class="trac-field-new">Boost 1.53.0</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.55.0</span> </li> </ul> Ticket anonymous Fri, 28 Jun 2013 06:43:54 GMT <link>https://svn.boost.org/trac10/ticket/8739#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8739#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/8739#comment:3" title="Comment 3">marshall</a>: Yes I did look at the boost v1.54 release candidate to see if this problem was fixed as well as search for tickets but I did not check was what on trunk. </p> <p> Given the trivial nature of the fix, and given that it is a blocking problem for anyone wishing to use a C++11 compatible compiler, I would have hoped this fix could be put in boost v1.54... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Mon, 15 Jul 2013 13:57:10 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8739#comment:5 https://svn.boost.org/trac10/ticket/8739#comment:5 <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> Merged to release in <a class="changeset" href="https://svn.boost.org/trac10/changeset/85045" title="Merge fix for C++11 compilation error">[85045]</a> </p> Ticket