Re: MSVC2005: problem with valarray<valarray<T> >
- From: "Alex Blekhman" <xfkt@xxxxxxxxx>
- Date: Fri, 25 Aug 2006 13:33:49 +0300
"Abdelrazak Younes" wrote:
I have an array (math) library that uses valarray. I have
no choice to use that for now so please don't tell me that
it is a bad implementation. I would like to know why this
code is working fine with previous version of MSVC (with
or without STLPort) but not in MSVC2005, though it seems
to work fine with STLPort. My array class are like below:
template <class T> class array1d: public valarray<T> {...}
template <class T> class array2d: public array1d<
array1d<T> > {...}
Both classes implement a virtual default constructor.
When I create an instance of array2d<double> the code
crashes at construction. The weird thing is that the
array2d constructor calls the array1d destructor and
that's were it crashes...
Did you mean virtual destructor? Constructor cannot be
virtual. Also, provide some minimal example, which exposes
the problem.
.
- Follow-Ups:
- Re: MSVC2005: problem with valarray<valarray<T> >
- From: Abdelrazak Younes
- Re: MSVC2005: problem with valarray<valarray<T> >
- References:
- MSVC2005: problem with valarray<valarray<T> >
- From: Abdelrazak Younes
- MSVC2005: problem with valarray<valarray<T> >
- Prev by Date: MSVC2005: problem with valarray<valarray<T> >
- Next by Date: Re: MSVC2005: problem with valarray<valarray<T> >
- Previous by thread: MSVC2005: problem with valarray<valarray<T> >
- Next by thread: Re: MSVC2005: problem with valarray<valarray<T> >
- Index(es):
Relevant Pages
|