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
Stack Of Tasks
dynamic-graph
Commits
f07966d5
Commit
f07966d5
authored
Jul 28, 2020
by
Joseph Mirabel
Committed by
Guilhem Saurel
Nov 07, 2020
Browse files
Fix CommandReturnType
parent
675d7e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/dynamic-graph/command-bind.h
View file @
f07966d5
...
...
@@ -400,8 +400,7 @@ struct CommandReturnType0 : public Command {
protected:
virtual
Value
doExecute
()
{
assert
(
getParameterValues
().
size
()
==
0
);
Value
res
;
res
=
fptr
();
Value
res
(
fptr
());
return
res
;
}
...
...
@@ -462,7 +461,7 @@ protected:
assert
(
getParameterValues
().
size
()
==
1
);
T
val
=
getParameterValues
()[
0
].
value
();
Value
res
(
fptr
(
val
));
return
res
;
// void
return
res
;
}
private:
...
...
@@ -528,8 +527,8 @@ protected:
assert
(
getParameterValues
().
size
()
==
2
);
T1
val1
=
getParameterValues
()[
0
].
value
();
T2
val2
=
getParameterValues
()[
1
].
value
();
fptr
(
val1
,
val2
);
return
Value
();
// void
Value
res
(
fptr
(
val1
,
val2
)
)
;
return
res
;
}
private:
...
...
Write
Preview
Markdown
is supported
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