Boost C++ Libraries: Ticket #11966: [geometry] svg() does not compile for box and double coordinateType https://svn.boost.org/trac10/ticket/11966 <p> The function boost::geometry::svg() produces compilation error if used with a box that has double as <a class="missing wiki">CoordinateType</a>. </p> <pre class="wiki">In file included from /usr/include/boost/geometry/io/svg/svg_mapper.hpp:43:0, from /usr/include/boost/geometry/geometry.hpp:113, from /usr/include/boost/geometry.hpp:17, from /home/supasonic/src/TestBoostGeometry/main.cpp:1: /usr/include/boost/geometry/io/svg/write_svg.hpp: In instantiation of 'static void boost::geometry::detail::svg::svg_box&lt;Box&gt;::apply(std::basic_ostream&lt;Ch2, Tr2&gt;&amp;, const Box&amp;, const string&amp;, int) [with Char = char; Traits = std::char_traits&lt;char&gt;; Box = boost::geometry::model::box&lt;boost::geometry::model::d2::point_xy&lt;double&gt; &gt;; std::__cxx11::string = std::__cxx11::basic_string&lt;char&gt;]': /usr/include/boost/geometry/io/svg/write_svg.hpp:249:21: required from 'std::basic_ostream&lt;Ch2, Tr2&gt;&amp; boost::geometry::operator&lt;&lt;(std::basic_ostream&lt;Ch2, Tr2&gt;&amp;, const boost::geometry::svg_manipulator&lt;G&gt;&amp;) [with Char = char; Traits = std::char_traits&lt;char&gt;; G = boost::geometry::model::box&lt;boost::geometry::model::d2::point_xy&lt;double&gt; &gt;]' /home/supasonic/src/TestBoostGeometry/main.cpp:12:75: required from here /usr/include/boost/geometry/io/svg/write_svg.hpp:69:56: error: no matching function for call to 'max(int, boost::geometry::coordinate_type&lt;boost::geometry::model::box&lt;boost::geometry::model::d2::point_xy&lt;double&gt; &gt; &gt;::type)' ct width = max BOOST_PREVENT_MACRO_SUBSTITUTION(1, ^ </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11966 Trac 1.4.3 Jeremy Coulon <jeremy.coulon@…> Mon, 08 Feb 2016 21:34:58 GMT attachment set https://svn.boost.org/trac10/ticket/11966 https://svn.boost.org/trac10/ticket/11966 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bugreport.cpp</span> </li> </ul> Ticket awulkiew Tue, 09 Feb 2016 14:06:33 GMT status, milestone changed; keywords, resolution set https://svn.boost.org/trac10/ticket/11966#comment:1 https://svn.boost.org/trac10/ticket/11966#comment:1 <ul> <li><strong>keywords</strong> svg added </li> <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.61.0</span> </li> </ul> <p> Thanks! </p> <p> Fix: <a class="ext-link" href="https://github.com/boostorg/geometry/commit/dc3c5416f4d3c817a7a578d222a3c8f275d8b2bf"><span class="icon">​</span>https://github.com/boostorg/geometry/commit/dc3c5416f4d3c817a7a578d222a3c8f275d8b2bf</a> </p> Ticket