Modify

Ticket #8459 (closed Patches: fixed)

Opened 12 months ago

Last modified 11 months ago

Patch that implements multiple visitation in Boost.Variant

Reported by: apolukhin 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

multivisitors.hpp Download (5.9 KB) - added by apolukhin 12 months ago.
Multivisitors implementation
variant_multivisit_test.cpp Download (3.8 KB) - added by apolukhin 12 months ago.
Test for multivisitation

Change History

Changed 12 months ago by apolukhin

Multivisitors implementation

Changed 12 months ago by apolukhin

Test for multivisitation

comment:1 Changed 12 months ago by apolukhin

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

comment:2 Changed 12 months ago by apolukhin

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

comment:3 Changed 12 months ago by apolukhin

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

comment:4 Changed 11 months ago by apolukhin

  • Status changed from new to closed
  • Resolution set to fixed

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

  • documentation, tests and implementation of multivisitors (fixes #8459)
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.