Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
a306fff8
Commit
a306fff8
authored
Apr 20, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed use-after-move issue
parent
19e34924
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
cppa/policy/invoke_policy.hpp
cppa/policy/invoke_policy.hpp
+6
-2
No files found.
cppa/policy/invoke_policy.hpp
View file @
a306fff8
...
@@ -240,7 +240,7 @@ class invoke_policy {
...
@@ -240,7 +240,7 @@ class invoke_policy {
[
=
](
any_tuple
&
intermediate
)
->
optional
<
any_tuple
>
{
[
=
](
any_tuple
&
intermediate
)
->
optional
<
any_tuple
>
{
if
(
!
intermediate
.
empty
())
{
if
(
!
intermediate
.
empty
())
{
// do no use lamba expresion type to
// do no use lamba expresion type to
// avoid recursive template intantiaton
// avoid recursive template in
s
tantiaton
behavior
::
continuation_fun
f2
=
[
=
](
any_tuple
&
m
)
->
optional
<
any_tuple
>
{
behavior
::
continuation_fun
f2
=
[
=
](
any_tuple
&
m
)
->
optional
<
any_tuple
>
{
return
std
::
move
(
m
);
return
std
::
move
(
m
);
};
};
...
@@ -265,7 +265,11 @@ class invoke_policy {
...
@@ -265,7 +265,11 @@ class invoke_policy {
// respond by using the result of 'fun'
// respond by using the result of 'fun'
CPPA_LOG_DEBUG
(
"respond via response_promise"
);
CPPA_LOG_DEBUG
(
"respond via response_promise"
);
auto
fhdl
=
fetch_response_promise
(
self
,
hdl
);
auto
fhdl
=
fetch_response_promise
(
self
,
hdl
);
if
(
fhdl
)
fhdl
.
deliver
(
std
::
move
(
*
res
));
if
(
fhdl
)
{
fhdl
.
deliver
(
std
::
move
(
*
res
));
// inform caller about success
return
any_tuple
{};
}
}
}
}
}
return
res
;
return
res
;
...
...
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