Mon 25 May 2009 12:20:46 AM UTC, original submission:
I noticed that my fixes to some of the demo programs in 3.2.6 varied slightly different from what seems to be available in 3.2.8.
Awkward as it seems, the single include of string.h gets memcpy.
$ diff cgicc-3.2.6/demo/dns.cpp cgicc-3.2.8/demo/dns.cpp
3c3
< * $Id: dns.cpp,v 1.24 2007/07/02 18:48:19 sebdiaz Exp $
---
> * $Id: dns.cpp,v 1.25 2009/01/03 17:26:43 sebdiaz Exp $
37c37,38
<
---
> #include <stdio.h>
> #include <memory.h>
62d62
< #include <string.h>
It may a bit unfair, but using the parallel sort does not require the use of the std namespace,
$ diff cgicc-3.2.6/demo/cardgame.cpp cgicc-3.2.8/demo/cardgame.cpp
3c3
< * $Id: cardgame.cpp,v 1.6 2007/07/15 12:38:00 sebdiaz Exp $
---
> * $Id: cardgame.cpp,v 1.7 2009/01/03 17:26:43 sebdiaz Exp $
39,40c39
< #include <parallel/sort.h>
<
---
> #include <algorithm>
1047c1046
< sort (vPlayer->cardsList->begin(),vPlayer->cardsList->end());
---
> std::sort (vPlayer->cardsList->begin(),vPlayer->cardsList->end());
1233c1232
< sort(readedGame->playersList->at(pId)->cardsList->begin(),readedGame->playersList->at(pId)->cardsList->end());
---
> std::sort(readedGame->playersList->at(pId)->cardsList->begin(),readedGame->playersList->at(pId)->cardsList->end());
|