[gecode-users] Space and variables cloning

Christian Schulte schulte at imit.kth.se
Tue Mar 28 21:32:55 CEST 2006


Yes, indeed!

Christian

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




-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of jeremie.vautard
Sent: Tuesday, March 28, 2006 7:30 PM
To: users
Subject: RE: [gecode-users] Space and variables cloning


OK. I saw this copy method, however I thought it existed only for internal
purposes. If I understand well, I only need to write : 

qs2 = static_cast<QSpace> (qs->clone(false))

Am I right on this point ? (I tested it and it seems to work
so far, but I prefer asking for confirmation...)

Jeremie Vautard


> Never use copy! or the constructor! Use the clone method
instead (which, in
> turn uses the copy method). Please read about clone (it is a
member function
> of Space). Also, you might want to check how the search
engines are done.
> They also use clone.
> 
> Christian
> 
> --
> Christian Schulte, http://www.imit.kth.se/~schulte/
> 


Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




_______________________________________________
Gecode users mailing list
users at gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users





More information about the gecode-users mailing list