Boost logo

Ublas :

Subject: Re: [ublas] [bindings][traits] Stricter traits
From: Karl Meerbergen (karl.meerbergen_at_[hidden])
Date: 2009-04-17 14:15:34


Rutger,

Strictly speaking the bindings are only defined for numeric
value_type's... is_scalar would be is_numeric?

Rutger ter Borg wrote:
> 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.
>

This specialization would exist, but not be useful in any bindings.

Karl

> 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
>
>
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>