Boost C++ Libraries: Ticket #6498: boost::ratio won't compile with default settings https://svn.boost.org/trac10/ticket/6498 <p> Since 1.47.0, if I install boost on Ubuntu with bootstrap.sh and then just ./b2 stage and I compile with just </p> <blockquote> <p> g++ -I BOOSTROOT test.cpp </p> </blockquote> <p> With the following program: </p> <blockquote> <p> #include &lt;boost/ratio.hpp&gt; </p> </blockquote> <blockquote> <p> #include &lt;iostream&gt; #include &lt;iomanip&gt; </p> </blockquote> <blockquote> <p> int main() { </p> <blockquote> <p> typedef boost::ratio&lt;3, 2&gt; myRatio; std::cout &lt;&lt; myRatio::num &lt;&lt; '/' &lt;&lt; myRatio::den &lt;&lt; std::endl; return 0; </p> </blockquote> <p> } </p> </blockquote> <p> I get lots of compiler errors. Adding "-DBOOST_RATIO_EXTENSIONS" makes it compile okay. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6498 Trac 1.4.3 tjgolubi@… Tue, 31 Jan 2012 01:10:13 GMT attachment set https://svn.boost.org/trac10/ticket/6498 https://svn.boost.org/trac10/ticket/6498 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test1.cpp</span> </li> </ul> <p> Test program. </p> Ticket tjgolubi@… Tue, 31 Jan 2012 01:11:40 GMT attachment set https://svn.boost.org/trac10/ticket/6498 https://svn.boost.org/trac10/ticket/6498 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test1.txt</span> </li> </ul> <p> gcc compiler errors </p> Ticket tjgolubi@… Tue, 31 Jan 2012 01:17:11 GMT <link>https://svn.boost.org/trac10/ticket/6498#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6498#comment:1</guid> <description> <p> g++ version Ubuntu-Linaro 4.6.1-9ubuntu3 64-bit OS </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 21 Mar 2012 00:57:52 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/6498#comment:2 https://svn.boost.org/trac10/ticket/6498#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.49.0</span> → <span class="trac-field-new">Boost 1.50.0</span> </li> </ul> <p> Sorry I missed this issue. I will take care of it soon. </p> Ticket viboes Wed, 21 Mar 2012 21:17:56 GMT <link>https://svn.boost.org/trac10/ticket/6498#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6498#comment:3</guid> <description> <p> Committed in trunk revision 77461. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 01 Apr 2012 19:10:33 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6498#comment:4 https://svn.boost.org/trac10/ticket/6498#comment:4 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/77692" title="Ratio: Fix #6498+merge from trunk">[77692]</a>) Ratio: Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6498" title="#6498: Bugs: boost::ratio won't compile with default settings (closed: fixed)">#6498</a>+merge from trunk </p> Ticket