Bonsoir,
nous avons un gros souci dans notre code qui est le suivant :
Le problème c'est que le :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 for (int i = 0; i < nbICell.size(); ++i){ std::vector<T> coord; //on va creer nos points while (cmp < nbICell[i]){ //les 0-cellules if(i == 0){ coord = listFieldLine(listLine[cmp + cmp2]); Point<dimensionPoint,T> * point = new Point<dimensionPoint,T>(); for (int j = 0 ; j < coord.size() ; ++j){ (*point)[j] = coord[j]; } add0Cell(*point); } //les i-cellules else{ coord = listFieldLine(listLine[cmp + cmp2]); //listICell * border = _structComplex[0]; //cout << border->size() << std::endl; AbstractICell * lol = new ICell<i,2,int>(); //border->displayICell(); //AbstractICell iCellTemp; //for (int j = 0 ; j < coord.size() ; ++j){ // border->push_back(coord[j]); //} //std::cout << std::endl; } cmp ++; } cmp2 += cmp; cmp = 0; }
AbstractICell * lol = new ICell<i,2,int>();
nous en avons besoin absolument. Comment pourrions-nous faire avec ce "i" qu'on ne peut pas utiliser car il doit être connu avant compilation hors cela est impossble puisqu'il doit varier :/
Si quelqu'un a une solution alternative nous sommes preneur !
Partager