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
65f21491
Commit
65f21491
authored
Jul 18, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Announce vector<string> per default
parent
0d28685e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/uniform_type_info_map.cpp
src/uniform_type_info_map.cpp
+7
-2
unit_testing/test_uniform_type.cpp
unit_testing/test_uniform_type.cpp
+2
-1
No files found.
src/uniform_type_info_map.cpp
View file @
65f21491
...
...
@@ -86,7 +86,9 @@ const char* mapped_type_names[][2] = {
"std::allocator<std::pair<const @str,@str>>>"
,
"@strmap"
},
// std::vector<char>
{
"std::vector<@i8,std::allocator<@i8>>"
,
"@charbuf"
}
{
"std::vector<@i8,std::allocator<@i8>>"
,
"@charbuf"
},
// std::vector<std::string>
{
"std::vector<@str,std::allocator<@str>>"
,
"@strvec"
}
};
// the order of this table must be *identical* to mapped_type_names
using
static_type_table
=
type_list
<
bool
,
...
...
@@ -797,6 +799,8 @@ class utim_impl : public uniform_type_info_map {
using
charbuf
=
std
::
vector
<
char
>
;
using
strvec
=
std
::
vector
<
std
::
string
>
;
using
builtin_types
=
std
::
tuple
<
uti_impl
<
node_id
>
,
uti_impl
<
channel
>
,
uti_impl
<
down_msg
>
,
...
...
@@ -829,7 +833,8 @@ class utim_impl : public uniform_type_info_map {
int_tinfo
<
uint32_t
>
,
int_tinfo
<
int64_t
>
,
int_tinfo
<
uint64_t
>
,
default_uniform_type_info
<
charbuf
>>
;
default_uniform_type_info
<
charbuf
>
,
default_uniform_type_info
<
strvec
>>
;
builtin_types
m_storage
;
...
...
unit_testing/test_uniform_type.cpp
View file @
65f21491
...
...
@@ -159,7 +159,8 @@ int main() {
"@strmap"
,
// map<string,string>
"@timeout"
,
// timeout_msg
"@sync_exited"
,
// sync_exited_msg
"@sync_timeout"
// sync_timeout_msg
"@sync_timeout"
,
// sync_timeout_msg
"@strvec"
// vector<string>
};
if
(
check_types
(
expected
))
{
// causes the middleman to create its singleton
...
...
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