|
Ublas : |
Subject: [ublas] [bindings][traits] Stricter traits
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-04-16 03:40:41
Guys,
to ensure that, for example,
is_bindable_vector< std::vector< double > > is true, and
is_bindable_vector< std::vector< std::vector < double > > is false,
we would have to ensure that
vector_traits< std::vector< double > > has a specialization, and
vector_traits< std::vector< std::vector< double > > > does not.
I.e., we would have something like is_scalar to evaluate to true for
vector_traits<>::value_type. Ideas on how to achieve this cleanly?
Cheers,
Rutger