--- vector_expression.hpp.orig 2008-05-10 15:12:53.000000000 +0100 +++ vector_expression.hpp 2008-05-10 15:14:52.000000000 +0100 @@ -1170,7 +1170,9 @@ namespace boost { namespace numeric { na // (t * v) [i] = t * v [i] template BOOST_UBLAS_INLINE + typename enable_if< is_convertible, typename vector_binary_scalar1_traits >::result_type + >::type operator * (const T1 &e1, const vector_expression &e2) { typedef typename vector_binary_scalar1_traits >::expression_type expression_type; @@ -1395,7 +1397,9 @@ namespace boost { namespace numeric { na // (v * t) [i] = v [i] * t template BOOST_UBLAS_INLINE + typename enable_if< is_convertible, typename vector_binary_scalar2_traits >::result_type + >::type operator * (const vector_expression &e1, const T2 &e2) { typedef typename vector_binary_scalar2_traits >::expression_type expression_type;