Update for windows compatibility

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@359 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jboisson 2007-06-25 15:44:52 +00:00
commit f9693d1e1c
229 changed files with 3759 additions and 2398 deletions

View file

@ -11,24 +11,25 @@
#include "route_valid.h"
#include <vector.h>
#include <vector>
bool valid (Route & __route) {
bool valid (Route & __route)
{
vector<unsigned> t;
std::vector<unsigned int> t;
t.resize(__route.size());
for (unsigned i = 0 ; i < __route.size () ; i ++)
for (unsigned int i = 0 ; i < __route.size () ; i ++)
{
t [i] = 0 ;
}
for (unsigned i = 0 ; i < __route.size () ; i ++)
for (unsigned int i = 0 ; i < __route.size () ; i ++)
{
t [__route [i]] ++ ;
}
for (unsigned i = 0 ; i < __route.size () ; i ++)
for (unsigned int i = 0 ; i < __route.size () ; i ++)
{
if (t [i] != 1)
{