[Boost-bugs] [Boost C++ Libraries] #5744: [geometry] mistake fusion adapt example

Subject: [Boost-bugs] [Boost C++ Libraries] #5744: [geometry] mistake fusion adapt example
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-01 05:28:18


#5744: [geometry] mistake fusion adapt example
-------------------------------------------------------+--------------------
 Reporter: Akira Takahashi <faithandbrave@…> | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
-------------------------------------------------------+--------------------
 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; }; \
     }}}
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5744>
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:07 UTC