Opened 10 years ago

Closed 6 years 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.

Change History (6)

comment:1 by Mateusz Loskot, 9 years ago

Cc: mateusz@… added

comment:2 by Mateusz Loskot, 9 years ago

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 by Kohei Takahashi <flast@…>, 8 years ago

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 by Joel de Guzman, 8 years ago

Let's do this.

comment:5 by Braden McDaniel <braden@…>, 8 years ago

Cc: braden@… added

comment:6 by Kohei Takahashi, 6 years ago

Milestone: To Be DeterminedBoost 1.63.0
Resolution: fixed
Status: newclosed
Type: BugsFeature Requests
Note: See TracTickets for help on using tickets.