From 852dd0747368ba3d143a0690bcd960f5bc6f1a19 Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Thu, 19 Aug 2004 12:21:46 +0000 Subject: [PATCH] comment that free function resize fails on MSVC-6/7 svn path=/trunk/boost/boost/numeric/ublas/; revision=24592 --- include/boost/numeric/ublas/vector.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/boost/numeric/ublas/vector.hpp b/include/boost/numeric/ublas/vector.hpp index 93a0d45e..25475750 100644 --- a/include/boost/numeric/ublas/vector.hpp +++ b/include/boost/numeric/ublas/vector.hpp @@ -32,7 +32,8 @@ namespace boost { namespace numeric { namespace ublas { // Resizing helper. Allow 'preserve' parameter to be used where possible. -#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION +#ifdef REMOVED +//#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION // ISSUE Overloaded free function templates fail on some compilers! // Thanks to Karl Meerbergen for the functor workaround which we use by default template @@ -61,7 +62,10 @@ namespace boost { namespace numeric { namespace ublas { void resize (T& a, typename T::size_type size, bool preserve) { a.resize (size, preserve); } - // Specialise for std::vector + /* ISSUE Specialise for std::vector + * however compilers without template partial specialization (MSVC-6/7) + * also think this is bjam uBLAS_test ambiguous when std::vector is used! + */ template BOOST_UBLAS_INLINE void resize (std::vector &a, typename std::vector::size_type size, bool /* preserve */) {