diff --git a/dlib/matrix/matrix_utilities.h b/dlib/matrix/matrix_utilities.h index f9f6de0f5..e2f3bf632 100644 --- a/dlib/matrix/matrix_utilities.h +++ b/dlib/matrix/matrix_utilities.h @@ -1338,13 +1338,14 @@ namespace dlib // ---------------------------------------------------------------------------------------- template < - typename value_type + typename value_type, + typename alloc > - const matrix_exp > > vector_to_matrix ( - const std::vector& vector + const matrix_exp > > vector_to_matrix ( + const std::vector& vector ) { - typedef matrix_std_vector_exp > exp; + typedef matrix_std_vector_exp > exp; return matrix_exp(exp(vector)); }