Modify

Opened 6 years ago

Closed 6 years ago

#5744 closed Bugs (fixed)

[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 (0)

Change History (1)

comment:1 Changed 6 years ago by barendgehrels

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain barendgehrels.
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.