[gecode-users] IntVarArgs of unknown size...
Guido Tack
tack at ps.uni-sb.de
Tue May 22 07:05:48 CEST 2007
Sébastien Mouthuy wrote:
> I have a class with an IntVarArgs as instance variable, but its
> size is
> unknown at creation of my class. How can I safely set the size of my
> IntVarArgs in a function that is not my constructor.
To complement Christian's email, the appropriate data structure for
storing variables is probably an IntVarArray here. In the next
version of Gecode, these will allow dynamic resizing. If you want to
use that now, I could send you a patch, it's just one file that has
changed.
Cheers,
Guido
--
Guido Tack
Programming Systems Lab, Saarland University, Germany
http://www.ps.uni-sb.de/~tack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20070522/eddb13f6/attachment.htm>
More information about the gecode-users
mailing list