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
435b8476
Commit
435b8476
authored
Aug 26, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ostream operator for config_value
parent
df948253
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
libcaf_core/caf/config_value.hpp
libcaf_core/caf/config_value.hpp
+4
-0
libcaf_core/src/config_value.cpp
libcaf_core/src/config_value.cpp
+6
-1
No files found.
libcaf_core/caf/config_value.hpp
View file @
435b8476
...
...
@@ -20,6 +20,7 @@
#include <chrono>
#include <cstdint>
#include <iosfwd>
#include <iterator>
#include <map>
#include <string>
...
...
@@ -452,6 +453,9 @@ inline bool operator!=(const config_value& x, const config_value& y) {
/// @relates config_value
std
::
string
to_string
(
const
config_value
&
x
);
/// @relates config_value
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
config_value
&
x
);
template
<
class
...
Ts
>
config_value
make_config_value_list
(
Ts
&&
...
xs
)
{
std
::
vector
<
config_value
>
lst
{
config_value
{
std
::
forward
<
Ts
>
(
xs
)}...};
...
...
libcaf_core/src/config_value.cpp
View file @
435b8476
...
...
@@ -19,6 +19,8 @@
#include "caf/config_value.hpp"
#include <ostream>
#include "caf/detail/ini_consumer.hpp"
#include "caf/detail/parser/read_ini.hpp"
#include "caf/detail/type_traits.hpp"
...
...
@@ -136,5 +138,8 @@ std::string to_string(const config_value& x) {
return
deep_to_string
(
x
.
get_data
());
}
}
// namespace caf
std
::
ostream
&
operator
<<
(
std
::
ostream
&
out
,
const
config_value
&
x
)
{
return
out
<<
to_string
(
x
);
}
}
// 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