From 97083e3772e3da343a357e9edf79ddfe2d1a7dd2 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Sun, 5 Sep 2004 12:27:36 +0000 Subject: [PATCH] std::vector with allocator svn path=/trunk/boost/boost/numeric/ublas/; revision=24923 --- include/boost/numeric/ublas/vector.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/boost/numeric/ublas/vector.hpp b/include/boost/numeric/ublas/vector.hpp index 048c25fb..67acc58d 100644 --- a/include/boost/numeric/ublas/vector.hpp +++ b/include/boost/numeric/ublas/vector.hpp @@ -17,6 +17,8 @@ #ifndef BOOST_UBLAS_VECTOR_H #define BOOST_UBLAS_VECTOR_H +#include + #include #include #include @@ -44,7 +46,7 @@ namespace boost { namespace numeric { namespace ublas { // Specialise for std::vector template - struct resize_functor< std::vector > { + struct resize_functor > { void operator() (std::vector& a, typename std::vector::size_type size, bool ) const { a.resize (size); } @@ -65,9 +67,9 @@ namespace boost { namespace numeric { namespace ublas { * however compilers without template partial specialization (MSVC-6/7) * also think this is bjam uBLAS_test ambiguous when std::vector is used! */ - template + template BOOST_UBLAS_INLINE - void resize (std::vector &a, typename std::vector::size_type size, bool /* preserve */) { + void resize (std::vector &a, typename std::vector::size_type size, bool /* preserve */) { a.resize (size); } #endif