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
8d95e859
Commit
8d95e859
authored
Jun 20, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support automagic integer <-> timespan options
parent
61d13970
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
libcaf_core/caf/config_option_adder.hpp
libcaf_core/caf/config_option_adder.hpp
+6
-2
libcaf_core/src/config_option_adder.cpp
libcaf_core/src/config_option_adder.cpp
+7
-0
No files found.
libcaf_core/caf/config_option_adder.hpp
View file @
8d95e859
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include "caf/config_option.hpp"
#include "caf/config_option.hpp"
#include "caf/fwd.hpp"
#include "caf/fwd.hpp"
#include "caf/make_config_option.hpp"
namespace
caf
{
namespace
caf
{
...
@@ -49,9 +48,14 @@ public:
...
@@ -49,9 +48,14 @@ public:
/// For backward compatibility only. Do not use for new code!
/// For backward compatibility only. Do not use for new code!
/// @private
/// @private
config_option_adder
&
add_neg
(
bool
&
storage
,
const
char
*
name
,
config_option_adder
&
add_neg
(
bool
&
ref
,
const
char
*
name
,
const
char
*
description
);
const
char
*
description
);
/// For backward compatibility only. Do not use for new code!
/// @private
config_option_adder
&
add_us
(
size_t
&
ref
,
const
char
*
name
,
const
char
*
description
);
private:
private:
// -- properties -------------------------------------------------------------
// -- properties -------------------------------------------------------------
...
...
libcaf_core/src/config_option_adder.cpp
View file @
8d95e859
...
@@ -35,6 +35,13 @@ config_option_adder& config_option_adder::add_neg(bool& ref, const char* name,
...
@@ -35,6 +35,13 @@ config_option_adder& config_option_adder::add_neg(bool& ref, const char* name,
name
,
description
));
name
,
description
));
}
}
config_option_adder
&
config_option_adder
::
add_us
(
size_t
&
ref
,
const
char
*
name
,
const
char
*
description
)
{
return
add_impl
(
make_us_resolution_config_option
(
ref
,
category_
,
name
,
description
));
}
config_option_adder
&
config_option_adder
::
add_impl
(
config_option
&&
opt
)
{
config_option_adder
&
config_option_adder
::
add_impl
(
config_option
&&
opt
)
{
xs_
.
add
(
std
::
move
(
opt
));
xs_
.
add
(
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