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
38e87948
Commit
38e87948
authored
Jan 29, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting / coding style nitpicks
parent
82435879
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
libcaf_core/caf/on.hpp
libcaf_core/caf/on.hpp
+12
-7
No files found.
libcaf_core/caf/on.hpp
View file @
38e87948
...
...
@@ -162,8 +162,7 @@ struct rvalue_builder {
rvalue_builder
(
fun_container
arg1
)
:
m_funs
(
std
::
move
(
arg1
))
{}
template
<
class
Expr
>
match_expr
<
typename
get_case
<
is_complete
,
Expr
,
Transformers
,
Pattern
>::
type
>
match_expr
<
typename
get_case
<
is_complete
,
Expr
,
Transformers
,
Pattern
>::
type
>
operator
>>
(
Expr
expr
)
const
{
using
lifted_expr
=
typename
get_case
<
...
...
@@ -177,10 +176,16 @@ struct rvalue_builder {
using
trimmed_projections
=
typename
tl_trim
<
Transformers
>::
type
;
tuple_maker
f
;
auto
lhs
=
apply_args
(
f
,
get_indices
(
trimmed_projections
{}),
m_funs
);
typename
tl_apply
<
typename
tl_slice
<
target
,
tl_size
<
trimmed_projections
>::
value
,
tl_size
<
target
>::
value
>::
type
,
std
::
tuple
>::
type
rhs
;
using
rhs_type
=
typename
tl_apply
<
typename
tl_slice
<
target
,
tl_size
<
trimmed_projections
>::
value
,
tl_size
<
target
>::
value
>::
type
,
std
::
tuple
>::
type
;
rhs_type
rhs
;
// done
return
lifted_expr
{
std
::
move
(
expr
),
std
::
tuple_cat
(
lhs
,
rhs
)};
}
...
...
@@ -311,7 +316,7 @@ constexpr boxed_arg_match_t arg_match = boxed_arg_match_t();
template
<
class
T
,
typename
Predicate
>
std
::
function
<
optional
<
T
>
(
const
T
&
)
>
guarded
(
Predicate
p
,
T
value
)
{
return
[
=
](
const
T
&
other
)
->
optional
<
T
>
{
return
[
=
](
const
T
&
other
)
->
optional
<
T
>
{
if
(
p
(
other
,
value
))
{
return
value
;
}
...
...
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