diff --git a/include/boost/numeric/ublas/returntype_deduction.hpp b/include/boost/numeric/ublas/returntype_deduction.hpp index fa527f2c..66d82f87 100644 --- a/include/boost/numeric/ublas/returntype_deduction.hpp +++ b/include/boost/numeric/ublas/returntype_deduction.hpp @@ -14,9 +14,7 @@ #include #include #include -#include #include -#include #include #include @@ -129,8 +127,7 @@ struct error_cant_deduce_type {}; template typename disable_if< - mpl::or_, is_const > - , x_value_type + is_basic, x_value_type >::type test(X const&); @@ -139,8 +136,7 @@ struct error_cant_deduce_type {}; mpl::or_< is_basic , is_same - , is_const - , is_same + , is_same > , y_value_type >::type @@ -149,8 +145,8 @@ struct error_cant_deduce_type {}; template struct base_result_of { - typedef typename remove_reference::type x_type; - typedef typename remove_reference::type y_type; + typedef typename remove_cv::type x_type; + typedef typename remove_cv::type y_type; typedef mpl::vector16< mpl::identity