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
706d9c52
Commit
706d9c52
authored
Nov 01, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrate review feedback (clean up includes)
parent
f31ecef9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
17 deletions
+4
-17
libcaf_core/caf/mixin/behavior_changer.hpp
libcaf_core/caf/mixin/behavior_changer.hpp
+4
-15
libcaf_core/caf/scoped_actor.hpp
libcaf_core/caf/scoped_actor.hpp
+0
-2
No files found.
libcaf_core/caf/mixin/behavior_changer.hpp
View file @
706d9c52
...
@@ -19,17 +19,10 @@
...
@@ -19,17 +19,10 @@
#pragma once
#pragma once
#include <type_traits>
#include <type_traits>
#include <utility>
#include "caf/actor_traits.hpp"
#include "caf/behavior_policy.hpp"
#include "caf/behavior_policy.hpp"
#include "caf/fwd.hpp"
#include "caf/fwd.hpp"
#include "caf/local_actor.hpp"
#include "caf/message_id.hpp"
#include "caf/response_handle.hpp"
#include "caf/typed_behavior.hpp"
#include "caf/mixin/sender.hpp"
#include "caf/mixin/requester.hpp"
namespace
caf
{
namespace
caf
{
namespace
mixin
{
namespace
mixin
{
...
@@ -64,19 +57,16 @@ public:
...
@@ -64,19 +57,16 @@ public:
template
<
class
T0
,
class
T1
,
class
...
Ts
>
template
<
class
T0
,
class
T1
,
class
...
Ts
>
typename
std
::
enable_if
<
typename
std
::
enable_if
<
!
std
::
is_same
<
keep_behavior_t
,
typename
std
::
decay
<
T0
>::
type
>::
value
!
std
::
is_same
<
keep_behavior_t
,
typename
std
::
decay
<
T0
>::
type
>::
value
>::
type
>::
type
become
(
T0
&&
x0
,
T1
&&
x1
,
Ts
&&
...
xs
)
{
become
(
T0
&&
x0
,
T1
&&
x1
,
Ts
&&
...
xs
)
{
behavior_type
bhvr
{
std
::
forward
<
T0
>
(
x0
),
behavior_type
bhvr
{
std
::
forward
<
T0
>
(
x0
),
std
::
forward
<
T1
>
(
x1
),
std
::
forward
<
T1
>
(
x1
),
std
::
forward
<
Ts
>
(
xs
)...};
std
::
forward
<
Ts
>
(
xs
)...};
dptr
()
->
do_become
(
std
::
move
(
bhvr
.
unbox
()),
true
);
dptr
()
->
do_become
(
std
::
move
(
bhvr
.
unbox
()),
true
);
}
}
template
<
class
T0
,
class
T1
,
class
...
Ts
>
template
<
class
T0
,
class
T1
,
class
...
Ts
>
void
become
(
const
keep_behavior_t
&
,
T0
&&
x0
,
T1
&&
x1
,
Ts
&&
...
xs
)
{
void
become
(
const
keep_behavior_t
&
,
T0
&&
x0
,
T1
&&
x1
,
Ts
&&
...
xs
)
{
behavior_type
bhvr
{
std
::
forward
<
T0
>
(
x0
),
behavior_type
bhvr
{
std
::
forward
<
T0
>
(
x0
),
std
::
forward
<
T1
>
(
x1
),
std
::
forward
<
T1
>
(
x1
),
std
::
forward
<
Ts
>
(
xs
)...};
std
::
forward
<
Ts
>
(
xs
)...};
dptr
()
->
do_become
(
std
::
move
(
bhvr
.
unbox
()),
false
);
dptr
()
->
do_become
(
std
::
move
(
bhvr
.
unbox
()),
false
);
}
}
...
@@ -93,4 +83,3 @@ private:
...
@@ -93,4 +83,3 @@ private:
}
// namespace mixin
}
// namespace mixin
}
// namespace caf
}
// namespace caf
libcaf_core/caf/scoped_actor.hpp
View file @
706d9c52
...
@@ -21,9 +21,7 @@
...
@@ -21,9 +21,7 @@
#include "caf/actor_cast.hpp"
#include "caf/actor_cast.hpp"
#include "caf/actor_storage.hpp"
#include "caf/actor_storage.hpp"
#include "caf/actor_system.hpp"
#include "caf/actor_system.hpp"
#include "caf/actor_traits.hpp"
#include "caf/blocking_actor.hpp"
#include "caf/blocking_actor.hpp"
#include "caf/intrusive_ptr.hpp"
#include "caf/none.hpp"
#include "caf/none.hpp"
#include "caf/scoped_execution_unit.hpp"
#include "caf/scoped_execution_unit.hpp"
...
...
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