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
ba1daa54
Commit
ba1daa54
authored
Feb 17, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning in switch/case
parent
489d0bc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
unit_testing/test_intrusive_containers.cpp
unit_testing/test_intrusive_containers.cpp
+6
-12
No files found.
unit_testing/test_intrusive_containers.cpp
View file @
ba1daa54
...
...
@@ -87,19 +87,13 @@ struct pseudo_actor {
template
<
class
Policy
>
policy
::
invoke_message_result
invoke_message
(
uptr
&
ptr
,
Policy
&
policy
,
int
i
,
std
::
vector
<
int
>&
remaining
)
{
switch
(
invoke_message
(
ptr
,
i
))
{
case
policy
:
:
im_dropped
:
return
policy
::
im_dropped
;
case
policy
:
:
im_skipped
:
return
policy
::
im_skipped
;
case
policy
:
:
im_success
:
if
(
!
remaining
.
empty
())
{
auto
next
=
remaining
.
front
();
remaining
.
erase
(
remaining
.
begin
());
policy
.
invoke_from_cache
(
this
,
policy
,
next
,
remaining
);
}
return
policy
::
im_success
;
auto
res
=
invoke_message
(
ptr
,
i
);
if
(
res
==
im_success
&&
!
remaining
.
empty
())
{
auto
next
=
remaining
.
front
();
remaining
.
erase
(
remaining
.
begin
());
policy
.
invoke_from_cache
(
this
,
policy
,
next
,
remaining
);
}
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