2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-26 05:02:16 +00:00

comment that free function resize fails on MSVC-6/7

svn path=/trunk/boost/boost/numeric/ublas/; revision=24592
This commit is contained in:
Michael Stevens
2004-08-19 12:21:46 +00:00
parent c70cf6cec9
commit 852dd07473

View File

@@ -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 <class T>
@@ -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<class T>
BOOST_UBLAS_INLINE
void resize (std::vector<T> &a, typename std::vector<T>::size_type size, bool /* preserve */) {