Opened 10 years ago

Closed 9 years ago

#8459 closed Patches (fixed)

Patch that implements multiple visitation in Boost.Variant

Reported by: Antony Polukhin Owned by: ebf
Milestone: To Be Determined Component: variant
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Boost.Variant has boost::apply_visitor for unary and binary visitation. That's good, but some users need more...

File in attachment provides an ability to make ternary and quad visitation by default. And it is capable of generating boost::apply_visitor for even more amount of parameters, if BOOST_VARAINT_MAX_MULTIVIZITOR_PARAMS defined to value bigger than 4.

Attachments (2)

multivisitors.hpp (5.9 KB ) - added by Antony Polukhin 10 years ago.
Multivisitors implementation
variant_multivisit_test.cpp (3.8 KB ) - added by Antony Polukhin 10 years ago.
Test for multivisitation

Download all attachments as: .zip

Change History (6)

by Antony Polukhin, 10 years ago

Attachment: multivisitors.hpp added

Multivisitors implementation

by Antony Polukhin, 10 years ago

Attachment: variant_multivisit_test.cpp added

Test for multivisitation

comment:1 by Antony Polukhin, 9 years ago

(In [84112]) Multivisitors commit (refs #8459)

comment:2 by Antony Polukhin, 9 years ago

(In [84224]) Added one more test for multivisitors that will be used as an example in documentation (refs #8459)

comment:3 by Antony Polukhin, 9 years ago

(In [84227]) Update Boost.Variant documentation, add info about multivisitors (refs #8459)

comment:4 by Antony Polukhin, 9 years ago

Resolution: fixed
Status: newclosed

(In [84282]) Merge Boost.Variant from trunk

  • documentation, tests and implementation of multivisitors (fixes #8459)
Note: See TracTickets for help on using tickets.