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:
parent
5446af5e31
commit
f9693d1e1c
229 changed files with 3759 additions and 2398 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue