demianmnave / CML

The Configurable Math Library
https://github.com/demianmnave/CML
Boost Software License 1.0
83 stars 15 forks source link

Support structured binding of fixed-size vectors #11

Closed demianmnave closed 6 years ago

demianmnave commented 6 years ago

It would be useful to support C++17 structured binding to the elements of a fixed-size cml::vector<>. For example:

auto [x,y,z] = cml::vector3d(1.,2.,3.);

should yield

x = 1.
y = 2.
z = 3.
demianmnave commented 6 years ago

Fixed in d351844