Modify

Ticket #5744 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

[geometry] mistake fusion adapt example

Reported by: Akira Takahashi <faithandbrave@…> Owned by: barendgehrels
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; }; \

}}}

Attachments

Change History

comment:1 Changed 3 years ago by barendgehrels

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from To Be Determined to Boost 1.48.0
View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.