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
2760f516
Commit
2760f516
authored
Mar 19, 2017
by
Matthias Vallentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perform minor cosmetic touch-ups
parent
0bcb5c9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
libcaf_core/caf/data_processor.hpp
libcaf_core/caf/data_processor.hpp
+2
-2
libcaf_core/caf/stream_deserializer.hpp
libcaf_core/caf/stream_deserializer.hpp
+5
-5
No files found.
libcaf_core/caf/data_processor.hpp
View file @
2760f516
...
...
@@ -137,7 +137,7 @@ public:
typename
std
::
enable_if
<
std
::
is_floating_point
<
T
>::
value
,
error
>::
type
apply
(
T
&
x
)
{
static
constexpr
auto
tlindex
=
detail
::
tl_index_of
<
builtin_t
,
T
>::
value
;
static_assert
(
tlindex
>=
0
,
"T not recognized as builti
l
n type"
);
static_assert
(
tlindex
>=
0
,
"T not recognized as builtin type"
);
return
apply_builtin
(
static_cast
<
builtin
>
(
tlindex
),
&
x
);
}
...
...
@@ -153,7 +153,7 @@ public:
static_cast
<
int
>
(
sizeof
(
T
))
*
(
std
::
is_signed
<
T
>::
value
?
-
1
:
1
)
>::
type
;
static
constexpr
auto
tlindex
=
detail
::
tl_index_of
<
builtin_t
,
type
>::
value
;
static_assert
(
tlindex
>=
0
,
"T not recognized as builti
l
n type"
);
static_assert
(
tlindex
>=
0
,
"T not recognized as builtin type"
);
return
apply_builtin
(
static_cast
<
builtin
>
(
tlindex
),
&
x
);
}
...
...
libcaf_core/caf/stream_deserializer.hpp
View file @
2760f516
...
...
@@ -105,14 +105,14 @@ protected:
template
<
class
T
>
error
varbyte_decode
(
T
&
x
)
{
static_assert
(
std
::
is_unsigned
<
T
>::
value
,
"T must be an unsigned type"
);
T
n
=
0
;
auto
n
=
0
;
x
=
0
;
uint8_t
low7
;
do
{
auto
c
=
streambuf_
.
sbumpc
();
using
traits
=
typename
streambuf_type
::
traits_type
;
if
(
traits
::
eq_int_type
(
c
,
traits
::
eof
()))
return
sec
::
end_of_stream
;
auto
c
=
streambuf_
.
sbumpc
();
using
traits
=
typename
streambuf_type
::
traits_type
;
if
(
traits
::
eq_int_type
(
c
,
traits
::
eof
()))
return
sec
::
end_of_stream
;
low7
=
static_cast
<
uint8_t
>
(
traits
::
to_char_type
(
c
));
x
|=
static_cast
<
T
>
((
low7
&
0x7F
))
<<
(
7
*
n
);
++
n
;
...
...
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