Boost logo

Boost :

Subject: [boost] [fusion] Adapter for std::array
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-07-04 19:57:17


Hi,

I have prototyped Fusion adapter for std::array,
as an attempt to clear the related feature request:

https://svn.boost.org/trac/boost/ticket/8241

Here is the functional and testable code of the adaptor :

https://github.com/mloskot/boost_fusion_std_array

I will appreciate any critique and comments.

Unfortunately, I have hit the apparently well-known problem.
It is the Fusion begin/end ADL issues with C++0x range-based for
and such, as discussed and reported here:

http://lists.boost.org/Archives/boost/2010/12/174199.php
https://svn.boost.org/trac/boost/ticket/4028

There has been no feedback to the ticket #8241, so I'm not
sure what is the Fusion authors' view on std::array adoption.
So, a couple of questions:

Do the Fusion authors consider any cure for the ADL issues?

If not, despite the inconvenience of use of qualified names,
would it be still possible to accept std::array into Fusion?

Best regards,

--
Mateusz  Loskot, http://mateusz.loskot.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk