diff --git a/include/boost/numeric/ublas/storage.hpp b/include/boost/numeric/ublas/storage.hpp index cb9a2bec..84f9b8c8 100644 --- a/include/boost/numeric/ublas/storage.hpp +++ b/include/boost/numeric/ublas/storage.hpp @@ -1661,8 +1661,8 @@ namespace boost { namespace numeric { namespace ublas { typedef typename V1::value_type value1_type; typedef typename V2::value_type value2_type; - typedef V1::size_type size_type; - typedef V1::difference_type difference_type; + typedef typename V1::size_type size_type; + typedef typename V1::difference_type difference_type; typedef index_pair value_type; // There is nothing that can be referenced directly. Always return a copy of the index_pair typedef value_type reference; @@ -1847,8 +1847,8 @@ namespace boost { namespace numeric { namespace ublas { typedef typename V2::value_type value2_type; typedef typename V3::value_type value3_type; - typedef V1::size_type size_type; - typedef V1::difference_type difference_type; + typedef typename V1::size_type size_type; + typedef typename V1::difference_type difference_type; typedef index_triple value_type; // There is nothing that can be referenced directly. Always return a copy of the index_triple typedef value_type reference;