Structure binding support

Issue #269 resolved
Matthias Moulin created an issue

It would be nice to have C++17's structure binding support for StaticVector and StaticMatrix, where the former decomposes a StaticVectorinto scalars and the latter decomposes a StaticMatrix into row vectors.

This requires partially specializing std::tuple_size and std::tuple_element.

Comments (9)

  1. Klaus Iglberger

    Hi Matthias!

    This sounds like a reasonable addition to StaticVector and StaticMatrix. We will consider this in one of the next releases of Blaze. Alternatively, if you have the time, you could also provide the necessary specializations in form of a pull request. Thanks for creating this issue,

    Best regards,

    Klaus!

  2. Klaus Iglberger

    Commit a5c3942 adds structure binding support for the StaticVector class template. The feature is immediately available via cloning the Blaze repository and will be officially released in Blaze 3.6.

  3. Matthias Moulin reporter

    Right, but then you need to make both the inheritance and member type alias public?

  4. Log in to comment