Ticket #11966 (closed Bugs: fixed)

Opened 15 months ago

Last modified 15 months ago

[geometry] svg() does not compile for box and double coordinateType

Reported by: Jeremy Coulon <jeremy.coulon@…> Owned by: barendgehrels
Milestone: Boost 1.61.0 Component: geometry
Version: Boost 1.59.0 Severity: Problem
Keywords: svg Cc:


The function boost::geometry::svg() produces compilation error if used with a box that has double as CoordinateType?.

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<Box>::apply(std::basic_ostream<Ch2, Tr2>&, const Box&, const string&, int) [with Char = char; Traits = std::char_traits<char>; Box = boost::geometry::model::box<boost::geometry::model::d2::point_xy<double> >; std::__cxx11::string = std::__cxx11::basic_string<char>]':
/usr/include/boost/geometry/io/svg/write_svg.hpp:249:21:   required from 'std::basic_ostream<Ch2, Tr2>& boost::geometry::operator<<(std::basic_ostream<Ch2, Tr2>&, const boost::geometry::svg_manipulator<G>&) [with Char = char; Traits = std::char_traits<char>; G = boost::geometry::model::box<boost::geometry::model::d2::point_xy<double> >]'
/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<boost::geometry::model::box<boost::geometry::model::d2::point_xy<double> > >::type)'
         ct width = max BOOST_PREVENT_MACRO_SUBSTITUTION(1,


bugreport.cpp (437 bytes) - added by Jeremy Coulon <jeremy.coulon@…> 15 months ago.

Change History

Changed 15 months ago by Jeremy Coulon <jeremy.coulon@…>

comment:1 Changed 15 months ago by awulkiew

  • Keywords svg added
  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from To Be Determined to Boost 1.61.0

Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.