Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4281 closed Bugs (fixed)

BOOST_FUSION_DEFINE_TPL_STRUCT mismatch between doc and implementation/test

Reported by: Gevorg Voskanyan <v_gevorg@…> Owned by: Christopher Schmidt
Milestone: Component: fusion
Version: Boost 1.43.0 Severity: Problem
Keywords: Cc: v_gevorg@…, Christopher Schmidt

Description

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.

Change History (3)

comment:1 by Christopher Schmidt, 12 years ago

Cc: v_gevorg@… Christopher Schmidt mr.chr.schmidt@… added; v_gevorg@… removed
Owner: changed from Joel de Guzman to Christopher Schmidt
Status: newassigned

Thanks for the report. I'll commit a fix ASAP.

comment:2 by Christopher Schmidt, 12 years ago

Resolution: fixed
Status: assignedclosed

(In [62398]) documentation update - fixes #4281

comment:3 by Christopher Schmidt, 12 years ago

Cc: mr.chr.schmidt@… removed
Note: See TracTickets for help on using tickets.