diff --git a/include/boost/numeric/ublas/banded.hpp b/include/boost/numeric/ublas/banded.hpp index 3d84a3ed..38855488 100644 --- a/include/boost/numeric/ublas/banded.hpp +++ b/include/boost/numeric/ublas/banded.hpp @@ -1016,6 +1016,7 @@ namespace boost { namespace numeric { namespace ublas { #ifndef BOOST_UBLAS_NO_DERIVED_HELPERS BOOST_UBLAS_USING banded_matrix::operator =; #endif + typedef std::size_t size_type; typedef banded_matrix matrix_type; // Construction and destruction @@ -1023,10 +1024,10 @@ namespace boost { namespace numeric { namespace ublas { diagonal_matrix (): matrix_type () {} BOOST_UBLAS_INLINE - diagonal_matrix (std::size_t size): + diagonal_matrix (size_type size): matrix_type (size, size) {} BOOST_UBLAS_INLINE - diagonal_matrix (std::size_t size1, std::size_t size2): + diagonal_matrix (size_type size1, size_type size2): matrix_type (size1, size2) {} template BOOST_UBLAS_INLINE