id summary reporter owner description type status milestone component version severity resolution keywords cc 6511 Division by scalar should use enable_if<> Sean Reilly Gunter "file: vector_expression.hpp lines 1409 through 1417 function: operator/( vector, scalar) Should be using the enable_if<> macros just like the operator*() in lines 1397 through 1407 (just above it). Doing so allows further overloading of operator/() for other types. Suggested change is... Before: {{{ #!python // (v / t) [i] = v [i] / t template BOOST_UBLAS_INLINE typename vector_binary_scalar2_traits >::result_type operator / (const vector_expression &e1, const T2 &e2) { typedef typename vector_binary_scalar2_traits >::expression_type expression_type; return expression_type (e1 (), e2); } }}} After: {{{ #!python // (v / t) [i] = v [i] / t template BOOST_UBLAS_INLINE typename enable_if< is_convertible, typename vector_binary_scalar2_traits >::result_type >::type typename vector_binary_scalar2_traits >::result_type operator / (const vector_expression &e1, const T2 &e2) { typedef typename vector_binary_scalar2_traits >::expression_type expression_type; return expression_type (e1 (), e2); } }}} " Bugs closed Boost 1.52.0 uBLAS Boost 1.48.0 Problem fixed