[Boost-bugs] [Boost C++ Libraries] #11966: [geometry] svg() does not compile for box and double coordinateType

Subject: [Boost-bugs] [Boost C++ Libraries] #11966: [geometry] svg() does not compile for box and double coordinateType
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-08 21:34:27


#11966: [geometry] svg() does not compile for box and double coordinateType
---------------------------------------------+---------------------------
 Reporter: Jeremy Coulon <jeremy.coulon@…> | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
---------------------------------------------+---------------------------
 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,
                                                         ^
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11966>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC