[cvsnt] Unix port of latest CVSNT

Tony Hoyle tmh at nodomain.org
Wed Oct 23 13:16:20 BST 2002


On Tue, 22 Oct 2002 12:38:23 +0000, Boyd Meier wrote:

>> @@ -15,6 +15,7 @@
>  #include <vector>
>  #include <string>
>  #include <map>
> +#include <cstdarg>

This just includes stdarg.h, which is included automatically by stdio.h
(as printf uses it).

cstdarg probably wouldn't be compatible with VC6 (which is only minimally
C++ compatible).  It might be worth  including stdarg.h though.

> -			LockList.erase(&LockList[n]);
> +			LockList.erase(LockList.begin()+n);

Theoretically these two are exactly equivalent... personally I prefer the
first form as it's more obvious to the eye what is being represented (I
realise under the hood it's converting to iterators etc. of course).

It looks like they broke it in gcc3.  I can work around this in the code,
however I'm not sure I'd trust a cvsnt compiled under gcc3 to actually
run, though...  stick to 2.95 it you can.

Tony



More information about the cvsnt mailing list