[gecode-users] Initialize IntVArArgs from variable array a
Guido Tack
tack at gecode.org
Wed Oct 2 05:28:25 CEST 2013
Hi,
I think you need to brush up on your C++, that's the type signature, not the code you should write. Just check our documentation, you can construct an IntVarArgs from a vector v like this IntVarArgs x(v);
Cheers,
Guido
On 02/10/2013, at 1:21 PM, peter Tomson <pikapikanaoufel at gmail.com> wrote:
> hi all !
>
> in my model i have to get the interger variables from a vector , So i used this code that i found in MPG :
>
> IntVarArgs (const std::vector< IntVar > &a);
>
> but i have an error about the const : type name not allowed!!!!!!!!!!
>
> honnestly i declared an IntVarArray R, after that i wrote that code, So do i do any thing wrong ??? Do i mis ay thing ??
>
> Thank you very much for your hepl
>
> PETER
>
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
More information about the users
mailing list