[Boost-bugs] [Boost C++ Libraries] #4281: BOOST_FUSION_DEFINE_TPL_STRUCT mismatch between doc and implementation/test

Subject: [Boost-bugs] [Boost C++ Libraries] #4281: BOOST_FUSION_DEFINE_TPL_STRUCT mismatch between doc and implementation/test
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-02 10:14:09


#4281: BOOST_FUSION_DEFINE_TPL_STRUCT mismatch between doc and implementation/test
---------------------------------------------------+------------------------
 Reporter: Gevorg Voskanyan <v_gevorg@…> | Owner: djowel
     Type: Bugs | Status: new
Milestone: | Component: fusion
  Version: Boost 1.43.0 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 The documentation page for BOOST_FUSION_DEFINE_TPL_STRUCT suggests to
 specify the list of namespaces before the list of template parameters,
 which looks to be in conflict with the test
 (test/sequence/define_tpl_struct.cpp) and the implementation, where the
 list of namespaces comes after the list of template parameters.
 I.e., the doc contains:
 -------------------------------------------
 BOOST_FUSION_DEFINE_TPL_STRUCT(
     (namespace0)(namespace1)...,
     (template_param0)(template_param1)...,
     struct_name,
     (member_type0, member_name0)
     (member_type1, member_name1)
     ...
     )
 [snip]
 // Any instantiated demo::employee is a Fusion sequence
 BOOST_FUSION_DEFINE_TPL_STRUCT(
     (demo), (Name)(Age), employee,
     (Name, name)
     (Age, age))
 -------------------------------------------
 Whereas the test contains:
 -------------------------------------------
 BOOST_FUSION_DEFINE_TPL_STRUCT(
     (X)(Y),
     (ns),
     point,
     (X, x)
     (Y, y)
 )
 -------------------------------------------

 BOOST_FUSION_DEFINE_ASSOC_TPL_STRUCT suffers from the same problem.

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