From 6485f45e1da09ca88afb0543ca7cc14fdb585082 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Wed, 29 Sep 2004 18:25:42 +0000 Subject: [PATCH] FIX work with const UDTs, CV status is stripped from returned type svn path=/trunk/boost/boost/numeric/ublas/; revision=25482 --- include/boost/numeric/ublas/returntype_deduction.hpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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