Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Emmanuel Hebrard
SchedCL
Commits
a88cbe5a
Commit
a88cbe5a
authored
Oct 14, 2021
by
ehebrard
Browse files
valgrind
parent
5ed4b5ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/header/Schedule.hpp
View file @
a88cbe5a
...
...
@@ -22,6 +22,10 @@ class ChoicePoint {
public:
int
x
;
int
y
;
bool
isNone
()
const
{
return
x
<
0
;
}
const
bool
operator
==
(
const
ChoicePoint
&
cp
)
{
return
cp
.
x
==
x
and
cp
.
y
==
y
;
...
...
@@ -505,7 +509,8 @@ template <class T> ChoicePoint Schedule<T>::selectChoicePoint() {
#ifdef TRACE
if
(
TRACE
)
{
cout
<<
"select choice point: "
;
if
(
cp
==
Schedule
<
T
>::
none
)
// if (cp == Schedule<T>::none)
if
(
cp
.
isNone
())
cout
<<
"none"
;
else
displayChoicePoint
(
cout
,
cp
);
...
...
@@ -536,7 +541,8 @@ template <class T> void Schedule<T>::search() {
ChoicePoint
cp
{
selectChoicePoint
()};
if
(
cp
==
Schedule
<
T
>::
none
)
{
// if (cp == Schedule<T>::none) {
if
(
cp
.
isNone
())
{
cout
<<
"solution!
\n
"
;
exit
(
1
);
...
...
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