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 , 9 years ago
Cc: | added |
---|
comment:2 by , 9 years ago
comment:3 by , 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
- h ttp://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1442
comment:5 by , 8 years ago
Cc: | added |
---|
comment:6 by , 6 years ago
Milestone: | To Be Determined → Boost 1.63.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Type: | Bugs → Feature Requests |
Note:
See TracTickets
for help on using tickets.
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.