[Gecode] friend template <foo> bar

Gabor Szokoli szokoli at ps.uni-sb.de
Thu Sep 9 15:57:01 CEST 2004


Hi Christian!

In kernel/core.hh class Variable, you declare a template instance as 
friend like this:

template <VarTypeId VTI, PropCond PC> friend class VarTypeProcessor;

but gcc strongly prefers this notation:

friend class VarTypeProcessor<VTI, PC>;

(read: rejects the first.)
Is MSC comfortable with this alternative?


Gabor



More information about the gecode-users mailing list