Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
66d61331
Verified
Commit
66d61331
authored
Jun 12, 2021
by
Romain De Laage De Bellefaye
🌳
Browse files
Make operator== works
parent
a3437fa3
Pipeline
#79744
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/reseau_cellule_etats.cpp
View file @
66d61331
...
...
@@ -135,7 +135,7 @@ Reseau& Reseau::operator=(const Reseau& init_grille) {
bool
Reseau
::
operator
==
(
const
Reseau
&
r
){
if
(
static_cast
<
int
>
(
hauteur
)
!=
r
.
getHauteur
()
||
static_cast
<
int
>
(
largeur
)
!=
r
.
getLargeur
())
return
false
;
for
(
unsigned
int
i
=
0
;
hauteur
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
hauteur
;
i
++
)
for
(
unsigned
int
j
=
0
;
j
<
largeur
;
j
++
)
if
(
reseau
[
i
][
j
].
getIndEtat
()
!=
r
.
getReseau
()[
i
][
j
].
getIndEtat
())
return
false
;
return
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment