[Gecode] (no subject)

Christian Schulte schulte at imit.kth.se
Wed Sep 1 13:47:18 CEST 2004


If you want me, I could make it symmetric in that gcc also never calls the
default constructor...

Christian

--
Christian Schulte, http://www.imit.kth.se/~schulte/ 

-----Original Message-----
From: gecode-bounces at ps.uni-sb.de [mailto:gecode-bounces at ps.uni-sb.de] On
Behalf Of Guido Tack
Sent: Wednesday, September 01, 2004 10:03 AM
To: gecode at ps.uni-sb.de
Subject: Re: [Gecode] (no subject)


On Wednesday 01 September 2004 08:59, Christian Schulte wrote:
> The steiner example segfaults on Windows...

This is due to the different behaviour of AUTOARRAY under msvc and gcc: the 
gcc version initialises each element by calling its constructor, whereas the

msvc version only allocates the memory. I don't know what the correct 
solution looks like; I don't want to go through the whole array again 
initialising each element with a special init method that would have to be 
introduced only to this end.

Guido

-- 
Guido Tack
http://www.ps.uni-sb.de/~tack
_______________________________________________
Gecode mailing list
Gecode at ps.uni-sb.de http://www.ps.uni-sb.de/mailman/listinfo/gecode





More information about the gecode-users mailing list