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
1babec50
Commit
1babec50
authored
Nov 22, 2018
by
Tobias Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow adding lvalue config_options to set
parent
c6232740
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
libcaf_core/caf/config_option_set.hpp
libcaf_core/caf/config_option_set.hpp
+1
-2
libcaf_core/src/config_option_set.cpp
libcaf_core/src/config_option_set.cpp
+1
-1
No files found.
libcaf_core/caf/config_option_set.hpp
View file @
1babec50
...
@@ -166,8 +166,7 @@ public:
...
@@ -166,8 +166,7 @@ public:
}
}
/// Adds a config option to the set.
/// Adds a config option to the set.
/// @private
config_option_set
&
add
(
config_option
opt
);
config_option_set
&
add
(
config_option
&&
opt
);
/// Generates human-readable help text for all options.
/// Generates human-readable help text for all options.
std
::
string
help_text
(
bool
global_only
=
true
)
const
;
std
::
string
help_text
(
bool
global_only
=
true
)
const
;
...
...
libcaf_core/src/config_option_set.cpp
View file @
1babec50
...
@@ -52,7 +52,7 @@ void insert(string_builder& builder, size_t count, char ch) {
...
@@ -52,7 +52,7 @@ void insert(string_builder& builder, size_t count, char ch) {
namespace
caf
{
namespace
caf
{
config_option_set
&
config_option_set
::
add
(
config_option
&&
opt
)
{
config_option_set
&
config_option_set
::
add
(
config_option
opt
)
{
opts_
.
emplace_back
(
std
::
move
(
opt
));
opts_
.
emplace_back
(
std
::
move
(
opt
));
return
*
this
;
return
*
this
;
}
}
...
...
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