Boost C++ Libraries: Ticket #11397: Can't compile RawConverter from mpq_rational to double https://svn.boost.org/trac10/ticket/11397 <p> According to documentation I have to create low_level_convert function but compiler (gcc version 4.6.2 (SUSE Linux)) failed to compile it: </p> <p> error: invalid static_cast from type </p> <p> I attached test file. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11397 Trac 1.4.3 andyplekhanov@… Fri, 12 Jun 2015 12:35:43 GMT attachment set https://svn.boost.org/trac10/ticket/11397 https://svn.boost.org/trac10/ticket/11397 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> <p> Testcase </p> Ticket John Maddock Fri, 12 Jun 2015 16:13:17 GMT owner, component changed https://svn.boost.org/trac10/ticket/11397#comment:1 https://svn.boost.org/trac10/ticket/11397#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">John Maddock</span> to <span class="trac-author">Barend Gehrels</span> </li> <li><strong>component</strong> <span class="trac-field-old">multiprecision</span> → <span class="trac-field-new">geometry</span> </li> </ul> <p> This looks like a Geometry traits class question not a multiprecision one? </p> <p> BTW I'm not sure if this is relevant, but mpq_rational is static_cast'able to double in C++11 land. It rounds correctly as well which mpq_get_d appears not to. </p> Ticket