Modify

Opened 4 years ago

Closed 4 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 4 years ago.
Multivisitors implementation
variant_multivisit_test.cpp (3.8 KB) - added by Antony Polukhin 4 years ago.
Test for multivisitation

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by Antony Polukhin

Attachment: multivisitors.hpp added

Multivisitors implementation

Changed 4 years ago by Antony Polukhin

Attachment: variant_multivisit_test.cpp added

Test for multivisitation

comment:1 Changed 4 years ago by Antony Polukhin

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

comment:2 Changed 4 years ago by Antony Polukhin

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

comment:3 Changed 4 years ago by Antony Polukhin

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

comment:4 Changed 4 years ago by Antony Polukhin

Resolution: fixed
Status: newclosed

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

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain ebf.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.