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
63be8a11
Commit
63be8a11
authored
Dec 16, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include review feedback
parent
4c19bd6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
libcaf_core/caf/detail/init_fun_factory.hpp
libcaf_core/caf/detail/init_fun_factory.hpp
+1
-2
libcaf_core/caf/settings.hpp
libcaf_core/caf/settings.hpp
+1
-1
No files found.
libcaf_core/caf/detail/init_fun_factory.hpp
View file @
63be8a11
...
@@ -75,8 +75,7 @@ public:
...
@@ -75,8 +75,7 @@ public:
behavior
operator
()(
local_actor
*
self
)
final
{
behavior
operator
()(
local_actor
*
self
)
final
{
if
(
hook_
!=
nullptr
)
if
(
hook_
!=
nullptr
)
hook_
(
self
);
hook_
(
self
);
auto
dptr
=
static_cast
<
Base
*>
(
self
);
[[
maybe_unused
]]
auto
dptr
=
static_cast
<
Base
*>
(
self
);
CAF_IGNORE_UNUSED
(
dptr
);
if
constexpr
(
ReturnsBehavior
)
{
if
constexpr
(
ReturnsBehavior
)
{
auto
unbox
=
[](
auto
x
)
->
behavior
{
return
std
::
move
(
x
.
unbox
());
};
auto
unbox
=
[](
auto
x
)
->
behavior
{
return
std
::
move
(
x
.
unbox
());
};
if
constexpr
(
args_empty
)
{
if
constexpr
(
args_empty
)
{
...
...
libcaf_core/caf/settings.hpp
View file @
63be8a11
...
@@ -70,7 +70,7 @@ T get_or(const settings& xs, string_view name, T default_value) {
...
@@ -70,7 +70,7 @@ T get_or(const settings& xs, string_view name, T default_value) {
auto
result
=
get_if
<
T
>
(
&
xs
,
name
);
auto
result
=
get_if
<
T
>
(
&
xs
,
name
);
if
(
result
)
if
(
result
)
return
std
::
move
(
*
result
);
return
std
::
move
(
*
result
);
return
std
::
move
(
default_value
)
;
return
default_value
;
}
}
CAF_CORE_EXPORT
std
::
string
CAF_CORE_EXPORT
std
::
string
...
...
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