[gecode-users] LinExp issue with MSVC 9

Guido Tack tack at ps.uni-sb.de
Thu Mar 20 12:54:04 CET 2008


Filip Konvička wrote:
> It seems that spec() has more arguments in LinBin than in Actor, so  
> the
> compiler chokes. (Note that the function is not explicitly "virtual"  
> in
> LinBin.) This is a "Level 4" warning 4263, which I used to have turned
> into error using, so I wonder whether this should be fixed in Gecode  
> or
> not. The warning says that LinBin::spec() effectively hides
> Actor::spec() in LinBin (which might be intentional, of course, but  
> the
> compiler probably doubts that).

C4263 is one of the warnings that is off by default, that's why we  
hadn't noticed yet.  I'm not sure what we're going to do about it, the  
code is perfectly legal C++, and it doesn't cause any problems.  I  
wouldn't want to rename the function just because of this warning.   
Does it help to make LinBin::spec virtual itself?  If so, that would  
be an option.

Cheers,
	Guido

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2436 bytes
Desc: not available
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080320/8a4a4e9b/attachment.bin>


More information about the gecode-users mailing list