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
8bd7f2f2
Commit
8bd7f2f2
authored
Apr 06, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add return statements to append_tuple
parent
2e0c42e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libcaf_core/caf/message_builder.hpp
libcaf_core/caf/message_builder.hpp
+4
-4
No files found.
libcaf_core/caf/message_builder.hpp
View file @
8bd7f2f2
...
@@ -80,7 +80,7 @@ public:
...
@@ -80,7 +80,7 @@ public:
message_builder
&
append_tuple
(
std
::
integral_constant
<
size_t
,
N
>
,
message_builder
&
append_tuple
(
std
::
integral_constant
<
size_t
,
N
>
,
std
::
integral_constant
<
size_t
,
N
>
,
std
::
integral_constant
<
size_t
,
N
>
,
std
::
tuple
<
Ts
...
>&
)
{
std
::
tuple
<
Ts
...
>&
)
{
// end of recursion
return
*
this
;
}
}
template
<
size_t
I
,
size_t
N
,
class
...
Ts
>
template
<
size_t
I
,
size_t
N
,
class
...
Ts
>
...
@@ -88,13 +88,13 @@ public:
...
@@ -88,13 +88,13 @@ public:
std
::
integral_constant
<
size_t
,
N
>
e
,
std
::
integral_constant
<
size_t
,
N
>
e
,
std
::
tuple
<
Ts
...
>&
xs
)
{
std
::
tuple
<
Ts
...
>&
xs
)
{
append
(
std
::
move
(
std
::
get
<
I
>
(
xs
)));
append
(
std
::
move
(
std
::
get
<
I
>
(
xs
)));
append_tuple
(
std
::
integral_constant
<
size_t
,
I
+
1
>
{},
e
,
xs
);
return
append_tuple
(
std
::
integral_constant
<
size_t
,
I
+
1
>
{},
e
,
xs
);
}
}
template
<
class
...
Ts
>
template
<
class
...
Ts
>
message_builder
&
append_tuple
(
std
::
tuple
<
Ts
...
>
xs
)
{
message_builder
&
append_tuple
(
std
::
tuple
<
Ts
...
>
xs
)
{
append_tuple
(
std
::
integral_constant
<
size_t
,
0
>
{},
return
append_tuple
(
std
::
integral_constant
<
size_t
,
0
>
{},
std
::
integral_constant
<
size_t
,
sizeof
...(
Ts
)
>
{},
xs
);
std
::
integral_constant
<
size_t
,
sizeof
...(
Ts
)
>
{},
xs
);
}
}
/// Converts the buffer to an actual message object without
/// Converts the buffer to an actual message object without
...
...
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