Boost C++ Libraries: Ticket #10177: boost/geometry/strategies/cartesian/distance_pythagoras.hpp does not include boost/numeric/cast/conversion.hpp https://svn.boost.org/trac10/ticket/10177 <p> This results in a compiler error when the latter header is not included before the former about a missing boost::numeric_cast. </p> <p> Boost version by apt-cache policy libbopst-dev </p> <p> apt-cache policy libboost-dev libboost-dev: </p> <blockquote> <p> Installed: 1.54.0.1ubuntu1 Candidate: 1.54.0.1ubuntu1 Version table: </p> </blockquote> <blockquote> <p> <strong>* 1.54.0.1ubuntu1 0 </strong></p> <blockquote> <p> 500 <a class="ext-link" href="http://au.archive.ubuntu.com/ubuntu/"><span class="icon">​</span>http://au.archive.ubuntu.com/ubuntu/</a> trusty/main amd64 Packages 100 /var/lib/dpkg/status </p> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10177 Trac 1.4.3 awulkiew Sun, 13 Jul 2014 00:19:09 GMT <link>https://svn.boost.org/trac10/ticket/10177#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10177#comment:1</guid> <description> <p> This should be fixed now, this commit: </p> <p> <a class="ext-link" href="https://github.com/boostorg/geometry/commit/48bb75137da9473f2707d31f4b7f7e2d02931aac"><span class="icon">​</span>https://github.com/boostorg/geometry/commit/48bb75137da9473f2707d31f4b7f7e2d02931aac</a> </p> <p> adds </p> <p> #include &lt;boost/geometry/util/math.hpp&gt; </p> <p> which includes &lt;boost/numeric/conversion/cast.hpp&gt; </p> <p> Or should it be included explicitly in distance_pythagoras.hpp? </p> </description> <category>Ticket</category> </item> <item> <author>smspillaz@…</author> <pubDate>Mon, 14 Jul 2014 03:04:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10177#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10177#comment:2</guid> <description> <p> That depends - are end users permitted to use distance_pythagoras.hpp directly? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>awulkiew</dc:creator> <pubDate>Mon, 14 Jul 2014 23:21:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10177#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10177#comment:3</guid> <description> <p> Yes, more enlightened user should be able to include e.g. only the algorithm and the strategy he needs. </p> <p> To be perfectly clear. The commit mentioned above adds the required include indirectly: distance_pythagoras.hpp -&gt; boost/geometry/util/math.hpp -&gt; boost/numeric/conversion/cast.hpp </p> </description> <category>Ticket</category> </item> <item> <dc:creator>awulkiew</dc:creator> <pubDate>Mon, 06 Oct 2014 10:25:31 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/10177#comment:4 https://svn.boost.org/trac10/ticket/10177#comment:4 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.57.0</span> </li> </ul> Ticket