Boost logo

Geometry :

Subject: [ggl] bug in boost/geometry/algorithms/equals.hpp
From: Denis Kurilov (denis)
Date: 2011-05-18 14:21:54


Hi,

 

Have found some mistyping in trunk, /boost/geometry/algorithms/equals.hpp:

 

struct area_check

{

    template <typename Geometry1, typename Geometry2>

    static inline bool apply(Geometry1 const& geometry1, Geometry2 const&
geometry2)

    {

        return geometry::math::equals(

                geometry::area(geometry1),

                geometry::area(geometry1));

    }

};

 

 

struct length_check

{

    template <typename Geometry1, typename Geometry2>

    static inline bool apply(Geometry1 const& geometry1, Geometry2 const&
geometry2)

    {

        return geometry::math::equals(

                geometry::length(geometry1),

                geometry::length(geometry1));

    }

};

 

Lines 91, 103 - there should be a "geometry2" variable.

 

Best regards,

Denis Kurilov

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20110518/36adc60b/attachment.html


Geometry list run by mateusz at loskot.net