Opened 11 years ago

Closed 11 years ago

#5744 closed Bugs (fixed)

[geometry] mistake fusion adapt example

Reported by: Akira Takahashi <faithandbrave@…> Owned by: Barend Gehrels
Milestone: Boost 1.48.0 Component: geometry
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

mistake Boost.Fusion adapt example of reference: http://www.boost.org/doc/libs/1_47_0/libs/geometry/doc/html/geometry/reference/adapted/boost_fusion.html

BOOST_GEOMETRY_REGISTER_BOOST_FUSION_CS(sample_point)

should be

BOOST_GEOMETRY_REGISTER_BOOST_FUSION_CS(cs::cartesian);

and, BOOST_GEOMETRY_REGISTER_BOOST_FUSION_CS no use CoordinateSystem parameter. I think need modify cs::certesian to CoordinateSystem.

// boost/geometry/geometries/adapted/boost_fusion.hpp
#define BOOST_GEOMETRY_REGISTER_BOOST_FUSION_CS(CoordinateSystem) \
    namespace boost { namespace geometry { namespace traits { \
    template <typename Sequence> \
    struct coordinate_system \
               < \
                   Sequence, \
                   typename boost::enable_if \
                       < \
                           fusion_adapt_detail::is_fusion_sequence<Sequence> \
                       >::type \
               > \
    { typedef cs::cartesian type; }; \

}}}

Change History (1)

comment:1 by Barend Gehrels, 11 years ago

Milestone: To Be DeterminedBoost 1.48.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.