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
f384834e
Commit
f384834e
authored
Jan 17, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on Clang 3.6
parent
fde9e45b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
libcaf_core/caf/actor_system_config.hpp
libcaf_core/caf/actor_system_config.hpp
+13
-6
No files found.
libcaf_core/caf/actor_system_config.hpp
View file @
f384834e
...
@@ -361,12 +361,19 @@ T get(const actor_system_config& cfg, string_view name) {
...
@@ -361,12 +361,19 @@ T get(const actor_system_config& cfg, string_view name) {
/// Retrieves the value associated to `name` from `cfg` or returns
/// Retrieves the value associated to `name` from `cfg` or returns
/// `default_value`.
/// `default_value`.
/// @relates config_value
/// @relates config_value
template
<
class
K
,
class
V
>
template
<
class
T
,
class
=
typename
std
::
enable_if
<
auto
get_or
(
const
actor_system_config
&
cfg
,
K
&&
name
,
V
&&
default_value
)
!
std
::
is_pointer
<
T
>
::
value
->
decltype
(
get_or
(
content
(
cfg
),
std
::
forward
<
K
>
(
name
),
&&
!
std
::
is_convertible
<
T
,
string_view
>::
value
>::
type
>
std
::
forward
<
V
>
(
default_value
)))
{
T
get_or
(
const
actor_system_config
&
cfg
,
string_view
name
,
T
default_value
)
{
return
get_or
(
content
(
cfg
),
std
::
forward
<
K
>
(
name
),
return
get_or
(
content
(
cfg
),
name
,
std
::
move
(
default_value
));
std
::
forward
<
V
>
(
default_value
));
}
/// Retrieves the value associated to `name` from `cfg` or returns
/// `default_value`.
/// @relates config_value
inline
std
::
string
get_or
(
const
actor_system_config
&
cfg
,
string_view
name
,
string_view
default_value
)
{
return
get_or
(
content
(
cfg
),
name
,
default_value
);
}
}
}
// namespace caf
}
// namespace caf
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