Boost logo

Ublas :

Subject: [ublas] [bindings][traits] Moving the free functions
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-04-16 02:48:48


looking at extending the bindings traits system to support decorated types
and matrix/vector reinterpretations, I was wondering whether it would be an
idea to move the free traits functions to a more generic header, like

For example, interpreting a vector as a matrix could be done by extending
the matrix_num_rows to use the is_bindable_matrix/vector metafunctions to
select which traits-backend to use.

In addition, decorated types like "trans(x)" may be dispatched correctly at
the free-function level as well, when more metafunctions (e.g.,
is_decorated) become available.