#4281 closed Bugs (fixed)
BOOST_FUSION_DEFINE_TPL_STRUCT mismatch between doc and implementation/test
Reported by: | 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 , 12 years ago
Cc: | added; removed |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 12 years ago
Cc: | removed |
---|
Thanks for the report. I'll commit a fix ASAP.