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
815a51c4
Commit
815a51c4
authored
May 12, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable streaming of all announced types
parent
ffb36f8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
libcaf_core/caf/actor_system_config.hpp
libcaf_core/caf/actor_system_config.hpp
+11
-0
No files found.
libcaf_core/caf/actor_system_config.hpp
View file @
815a51c4
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <unordered_map>
#include <unordered_map>
#include "caf/fwd.hpp"
#include "caf/fwd.hpp"
#include "caf/stream.hpp"
#include "caf/config_value.hpp"
#include "caf/config_value.hpp"
#include "caf/config_option.hpp"
#include "caf/config_option.hpp"
#include "caf/actor_factory.hpp"
#include "caf/actor_factory.hpp"
...
@@ -163,11 +164,21 @@ public:
...
@@ -163,11 +164,21 @@ public:
||
(
std
::
is_default_constructible
<
T
>::
value
||
(
std
::
is_default_constructible
<
T
>::
value
&&
std
::
is_copy_constructible
<
T
>::
value
),
&&
std
::
is_copy_constructible
<
T
>::
value
),
"T must provide default and copy constructors"
);
"T must provide default and copy constructors"
);
using
stream_type
=
stream
<
T
>
;
std
::
string
stream_name
=
"stream<"
;
stream_name
+=
name
;
stream_name
+=
">"
;
static_assert
(
detail
::
is_serializable
<
T
>::
value
,
"T must be serializable"
);
static_assert
(
detail
::
is_serializable
<
T
>::
value
,
"T must be serializable"
);
type_names_by_rtti
.
emplace
(
std
::
type_index
(
typeid
(
T
)),
name
);
type_names_by_rtti
.
emplace
(
std
::
type_index
(
typeid
(
T
)),
name
);
value_factories_by_name
.
emplace
(
std
::
move
(
name
),
&
make_type_erased_value
<
T
>
);
value_factories_by_name
.
emplace
(
std
::
move
(
name
),
&
make_type_erased_value
<
T
>
);
value_factories_by_rtti
.
emplace
(
std
::
type_index
(
typeid
(
T
)),
value_factories_by_rtti
.
emplace
(
std
::
type_index
(
typeid
(
T
)),
&
make_type_erased_value
<
T
>
);
&
make_type_erased_value
<
T
>
);
type_names_by_rtti
.
emplace
(
std
::
type_index
(
typeid
(
stream_type
)),
stream_name
);
value_factories_by_name
.
emplace
(
std
::
move
(
stream_name
),
&
make_type_erased_value
<
stream_type
>
);
value_factories_by_rtti
.
emplace
(
std
::
type_index
(
typeid
(
stream_type
)),
&
make_type_erased_value
<
stream_type
>
);
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