Boost logo

Ublas :

From: stone muxu (shijinghai_at_[hidden])
Date: 2005-07-13 21:52:52


I use the following defination, and it can't work:

typedef std::complex<double> cplxdouble;
typedef boost::numeric::ublas::matrix< cplxdouble > SFCplxMatrix;

I was told that:

d:\boost_1_32_0\boost\numeric\ublas\storage.hpp(315) :
error C2300: 'std::complex<double>' : class does not have a destructor
called '~value_type'
 d:\boost_1_32_0\boost\numeric\ublas\storage.hpp(314) : while compiling
class-template member function
 'void __cdecl boost::numeric::ublas::unbounded_array<class
std::complex<double>,class std::allocator<class std::complex<double> >
>::iterat
or_destroy(class std

and the error position at the following line, in file <storage.hpp> line
315.

        BOOST_UBLAS_INLINE
        static void iterator_destroy (iterator &i) {
            (&(*i)) -> ~value_type ();
        }

I'm using Visual C++ 6.0 with SP5, Windows XP with SP2, boost_1_32_0.

can anybody help me?

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn