Salut.
C'est normal car ton tableau c'est du const bool* const *, pas du bool**.
Tu peux faire le bourrin et convertir çà:
const_cast<const bool * const *>(reinterpret_cast<bool * const *>(tabscreen));
Mais je te conseille plutôt de faire un accesseur sur les éléments du tableau:
inline bool returntab(int X, int Y){return tabscreen[X, Y];}
Tu peux aussi créer un vector et le renvoyer par référence, comme ceci:
1 2 3
| std::vector<std::vector<bool> > tabscreen;
....
inline const std::vector<std::vector<bool> > & returntab(){return tabscreen;} |
A+
Partager