[Gecode] count propagators won't build

Christian Schulte schulte at imit.kth.se
Wed May 5 16:59:01 CEST 2004


Fixed. I declared a class inheriting from another class but only having a
static method. Here, gcc insists on having a constructor as the superclass
has a constructor. This, I think, is wrong! I just added declarations for
(private) default constructors to silence it.

Oh, there comes to mind a better solution: do not inherit (I don't need it
actually any longer).

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, May 05, 2004 3:41 PM
To: gecode at ps.uni-sb.de
Subject: [Gecode] count propagators won't build


Hi!

It seems some recent change broke the count propagators, at least for gcc:

../int/count.hh: In instantiation of `Count::IntLe<IntVar, ConstIntVar, 
Count::RelEq<IntVar> >':
count/post.cc:33:   instantiated from here
../int/count.hh:106: error: base `Count::IntLq<IntVar, ConstIntVar,
   Count::RelEq<IntVar> >' with only non-default constructor in class
without 
a constructor

(and some more similar errors)

Any ideas?

-- 
Guido Tack
Programming Systems Lab
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