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
e1da00b4
Commit
e1da00b4
authored
Dec 16, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler error about explicit std::tuple ctor
parent
bdd63e7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
unit_testing/test_fixed_stack_actor.cpp
unit_testing/test_fixed_stack_actor.cpp
+4
-4
No files found.
unit_testing/test_fixed_stack_actor.cpp
View file @
e1da00b4
...
...
@@ -13,11 +13,11 @@ class fixed_stack : public sb_actor<fixed_stack> {
fixed_stack
(
size_t
max
)
:
max_size
(
max
)
{
full
=
(
on
(
atom
(
"push"
),
arg_match
)
>>
[
=
](
int
)
{
/* discard */
},
on
(
atom
(
"pop"
))
>>
[
=
]()
->
std
::
tuple
<
atom_value
,
int
>
{
on
(
atom
(
"pop"
))
>>
[
=
]()
->
message
{
auto
result
=
data
.
back
();
data
.
pop_back
();
become
(
filled
);
return
{
atom
(
"ok"
),
result
}
;
return
make_message
(
atom
(
"ok"
),
result
)
;
}
);
filled
=
(
...
...
@@ -25,11 +25,11 @@ class fixed_stack : public sb_actor<fixed_stack> {
data
.
push_back
(
what
);
if
(
data
.
size
()
==
max_size
)
become
(
full
);
},
on
(
atom
(
"pop"
))
>>
[
=
]()
->
std
::
tuple
<
atom_value
,
int
>
{
on
(
atom
(
"pop"
))
>>
[
=
]()
->
message
{
auto
result
=
data
.
back
();
data
.
pop_back
();
if
(
data
.
empty
())
become
(
empty
);
return
{
atom
(
"ok"
),
result
}
;
return
make_message
(
atom
(
"ok"
),
result
)
;
}
);
empty
=
(
...
...
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