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
eae41fc2
Commit
eae41fc2
authored
Aug 10, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix override warnings
parent
6507c9da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
libcaf_core/caf/deserializer_impl.hpp
libcaf_core/caf/deserializer_impl.hpp
+21
-20
No files found.
libcaf_core/caf/deserializer_impl.hpp
View file @
eae41fc2
...
...
@@ -63,7 +63,7 @@ public:
}
// -- overridden member functions --------------------------------------------
error
begin_object
(
uint16_t
&
nr
,
std
::
string
&
name
)
{
error
begin_object
(
uint16_t
&
nr
,
std
::
string
&
name
)
override
{
if
(
auto
err
=
apply
(
nr
))
return
err
;
if
(
nr
!=
0
)
...
...
@@ -71,15 +71,15 @@ public:
return
apply
(
name
);
}
error
end_object
()
{
error
end_object
()
override
{
return
none
;
}
error
begin_sequence
(
size_t
&
list_size
)
{
error
begin_sequence
(
size_t
&
list_size
)
override
{
// Use varbyte encoding to compress sequence size on the wire.
uint32_t
x
=
0
;
int
n
=
0
;
uint8_t
low7
;
uint8_t
low7
=
0
;
do
{
if
(
auto
err
=
apply_impl
(
low7
))
return
err
;
...
...
@@ -90,11 +90,11 @@ public:
return
none
;
}
error
end_sequence
()
{
error
end_sequence
()
override
{
return
none
;
}
error
apply_raw
(
size_t
num_bytes
,
void
*
storage
)
{
error
apply_raw
(
size_t
num_bytes
,
void
*
storage
)
override
{
if
(
!
range_check
(
num_bytes
))
return
sec
::
end_of_stream
;
memcpy
(
storage
,
current_
,
num_bytes
);
...
...
@@ -125,47 +125,47 @@ public:
}
protected:
error
apply_impl
(
int8_t
&
x
)
{
error
apply_impl
(
int8_t
&
x
)
override
{
return
apply_raw
(
sizeof
(
int8_t
),
&
x
);
}
error
apply_impl
(
uint8_t
&
x
)
{
error
apply_impl
(
uint8_t
&
x
)
override
{
return
apply_raw
(
sizeof
(
uint8_t
),
&
x
);
}
error
apply_impl
(
int16_t
&
x
)
{
error
apply_impl
(
int16_t
&
x
)
override
{
return
apply_int
(
*
this
,
x
);
}
error
apply_impl
(
uint16_t
&
x
)
{
error
apply_impl
(
uint16_t
&
x
)
override
{
return
apply_int
(
*
this
,
x
);
}
error
apply_impl
(
int32_t
&
x
)
{
error
apply_impl
(
int32_t
&
x
)
override
{
return
apply_int
(
*
this
,
x
);
}
error
apply_impl
(
uint32_t
&
x
)
{
error
apply_impl
(
uint32_t
&
x
)
override
{
return
apply_int
(
*
this
,
x
);
}
error
apply_impl
(
int64_t
&
x
)
{
error
apply_impl
(
int64_t
&
x
)
override
{
return
apply_int
(
*
this
,
x
);
}
error
apply_impl
(
uint64_t
&
x
)
{
error
apply_impl
(
uint64_t
&
x
)
override
{
return
apply_int
(
*
this
,
x
);
}
error
apply_impl
(
float
&
x
)
{
error
apply_impl
(
float
&
x
)
override
{
return
apply_float
(
*
this
,
x
);
}
error
apply_impl
(
double
&
x
)
{
error
apply_impl
(
double
&
x
)
override
{
return
apply_float
(
*
this
,
x
);
}
error
apply_impl
(
long
double
&
x
)
{
error
apply_impl
(
long
double
&
x
)
override
{
// The IEEE-754 conversion does not work for long double
// => fall back to string serialization (even though it sucks).
std
::
string
tmp
;
...
...
@@ -175,7 +175,8 @@ protected:
iss
>>
x
;
return
none
;
}
error
apply_impl
(
std
::
string
&
x
)
{
error
apply_impl
(
std
::
string
&
x
)
override
{
size_t
str_size
;
if
(
auto
err
=
begin_sequence
(
str_size
))
return
err
;
...
...
@@ -186,7 +187,7 @@ protected:
return
end_sequence
();
}
error
apply_impl
(
std
::
u16string
&
x
)
{
error
apply_impl
(
std
::
u16string
&
x
)
override
{
auto
str_size
=
x
.
size
();
if
(
auto
err
=
begin_sequence
(
str_size
))
return
err
;
...
...
@@ -200,7 +201,7 @@ protected:
return
none
;
}
error
apply_impl
(
std
::
u32string
&
x
)
{
error
apply_impl
(
std
::
u32string
&
x
)
override
{
auto
str_size
=
x
.
size
();
if
(
auto
err
=
begin_sequence
(
str_size
))
return
err
;
...
...
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