Modify

Opened 5 years ago

Closed 13 months ago

#8241 closed Feature Requests (fixed)

Treat std::array as a Fusion sequence

Reported by: Nathan Ridge Owned by: Joel de Guzman
Milestone: Boost 1.63.0 Component: fusion
Version: Boost Development Trunk Severity: Problem
Keywords: Cc: mateusz@…, braden@…

Description

Boost.Fusion provides support for treating boost::array as a Fusion sequence (http://www.boost.org/doc/libs/1_53_0/libs/fusion/doc/html/fusion/adapted/boost__array.html).

With the growing adoption of C++11, it would be great if similar support were provided for std::array.

Attachments (0)

Change History (6)

comment:1 Changed 4 years ago by Mateusz Loskot

Cc: mateusz@… added

comment:2 Changed 4 years ago by Mateusz Loskot

Here, I have prototyped std::array adoption as Boost.Fusion sequence: https://github.com/mloskot/boost_fusion_std_array

It is functional, however, the problem with ADL and begin/end conflict remains unsolved (see #4028), hence full qualification used in the test program std_array.cpp.

Comments welcome.

comment:3 Changed 3 years ago by Kohei Takahashi <flast@…>

The behaviour of C++11 range-based for has been changed by DR1442 [1], no ADL will be performend. Thus, the adoption would be nice.

Note that, following compilers will perform ADL with range-based for.

  • clang 3.0 and 3.1
  • gcc 4.6 - 4.8
  1. h ttp://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1442

comment:4 Changed 3 years ago by Joel de Guzman

Let's do this.

comment:5 Changed 3 years ago by Braden McDaniel <braden@…>

Cc: braden@… added

comment:6 Changed 13 months ago by Kohei Takahashi

Milestone: To Be DeterminedBoost 1.63.0
Resolution: fixed
Status: newclosed
Type: BugsFeature Requests

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Joel de Guzman.
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.