Skip to content

mloskot/boost_fusion_std_array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boost.Fusion extension for std::array

An attempt to adapt std::array for Boost.Fusion.

The implementation is functional and passes the same test as adapted Boost.Array.

Proposal thread on the Boost mailing list: [fusion] Adapter for std::array.

However, there is a problem with ADL and range-based access to the sequence which is a well-known issue:

See also:

  • N3257=11-0027 Jonathan Wakely and Bjarne Stroustrup: Range-based for statements and ADL. Option 5 was chosen for C++11.

  • Jonathan Wakely's review of the issue regarding the Boost.Fusion adaptor for std::string:

    The standard was changed to not use unqualified begin/end when the type has begin/end members, because when there are multiple "greedy" overloads that can be found by ADL there is no simple way to prevent ambiguity. So I agree that your best option might be to avoid those unqualified calls.

About

Boost.Fusion extension for std::array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages