Mail Archives: djgpp/1998/11/17/08:35:59
Michael Schuster <Schuster AT eev DOT e-technik DOT uni-erlangen DOT de> writes:
> The following programm compiles fine with 2.7.2.1 but not with 2.8.1
>
> #include <stream.h>
> class ax
> {
> int* w;
> public:
> ax(int elements,int dummy)
> {
> w=new int[elements];
> }
> };
> class b
> {
> ax* e;
> public:
> b (int row,int elements,int dummy)
> {
> e= new ax[row](elements,dummy); // causes the trouble
> }
> };
I don't think new is able to call non-default constructors in
standard C++. That looks like a GNUism to me.
HTH, Ian
--
Ian Miller, Dorset, UK
The views expressed above are those of the writer and do not represent the
views, policy, or understanding of any other person or official body.
- Raw text -