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
de9c9d78
Commit
de9c9d78
authored
Apr 19, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around more GCC 4.8 bugs
parent
1673d0b3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
libcaf_core/caf/stream_deserializer.hpp
libcaf_core/caf/stream_deserializer.hpp
+6
-6
libcaf_core/caf/stream_serializer.hpp
libcaf_core/caf/stream_serializer.hpp
+4
-4
libcaf_core/caf/streambuf.hpp
libcaf_core/caf/streambuf.hpp
+2
-2
No files found.
libcaf_core/caf/stream_deserializer.hpp
View file @
de9c9d78
...
@@ -53,14 +53,14 @@ class stream_deserializer : public deserializer {
...
@@ -53,14 +53,14 @@ class stream_deserializer : public deserializer {
public:
public:
template
<
class
...
Ts
>
template
<
class
...
Ts
>
explicit
stream_deserializer
(
actor_system
&
sys
,
Ts
&&
...
xs
)
explicit
stream_deserializer
(
actor_system
&
sys
,
Ts
&&
...
xs
)
:
deserializer
{
sys
}
,
:
deserializer
(
sys
)
,
streambuf_
{
std
::
forward
<
Ts
>
(
xs
)...}
{
streambuf_
(
std
::
forward
<
Ts
>
(
xs
)...)
{
}
}
template
<
class
...
Ts
>
template
<
class
...
Ts
>
explicit
stream_deserializer
(
execution_unit
*
ctx
,
Ts
&&
...
xs
)
explicit
stream_deserializer
(
execution_unit
*
ctx
,
Ts
&&
...
xs
)
:
deserializer
{
ctx
}
,
:
deserializer
(
ctx
)
,
streambuf_
{
std
::
forward
<
Ts
>
(
xs
)...}
{
streambuf_
(
std
::
forward
<
Ts
>
(
xs
)...)
{
}
}
template
<
template
<
...
@@ -73,8 +73,8 @@ public:
...
@@ -73,8 +73,8 @@ public:
>::
type
>::
type
>
>
explicit
stream_deserializer
(
S
&&
sb
)
explicit
stream_deserializer
(
S
&&
sb
)
:
deserializer
{
nullptr
}
,
:
deserializer
(
nullptr
)
,
streambuf_
{
std
::
forward
<
S
>
(
sb
)}
{
streambuf_
(
std
::
forward
<
S
>
(
sb
))
{
}
}
void
begin_object
(
uint16_t
&
typenr
,
std
::
string
&
name
)
override
{
void
begin_object
(
uint16_t
&
typenr
,
std
::
string
&
name
)
override
{
...
...
libcaf_core/caf/stream_serializer.hpp
View file @
de9c9d78
...
@@ -51,13 +51,13 @@ class stream_serializer : public serializer {
...
@@ -51,13 +51,13 @@ class stream_serializer : public serializer {
public:
public:
template
<
class
...
Ts
>
template
<
class
...
Ts
>
explicit
stream_serializer
(
actor_system
&
sys
,
Ts
&&
...
xs
)
explicit
stream_serializer
(
actor_system
&
sys
,
Ts
&&
...
xs
)
:
serializer
{
sys
}
,
:
serializer
(
sys
)
,
streambuf_
{
std
::
forward
<
Ts
>
(
xs
)...}
{
streambuf_
{
std
::
forward
<
Ts
>
(
xs
)...}
{
}
}
template
<
class
...
Ts
>
template
<
class
...
Ts
>
explicit
stream_serializer
(
execution_unit
*
ctx
,
Ts
&&
...
xs
)
explicit
stream_serializer
(
execution_unit
*
ctx
,
Ts
&&
...
xs
)
:
serializer
{
ctx
}
,
:
serializer
(
ctx
)
,
streambuf_
{
std
::
forward
<
Ts
>
(
xs
)...}
{
streambuf_
{
std
::
forward
<
Ts
>
(
xs
)...}
{
}
}
...
@@ -71,8 +71,8 @@ public:
...
@@ -71,8 +71,8 @@ public:
>::
type
>::
type
>
>
explicit
stream_serializer
(
S
&&
sb
)
explicit
stream_serializer
(
S
&&
sb
)
:
serializer
{
nullptr
}
,
:
serializer
(
nullptr
)
,
streambuf_
{
std
::
forward
<
S
>
(
sb
)}
{
streambuf_
(
std
::
forward
<
S
>
(
sb
))
{
}
}
void
begin_object
(
uint16_t
&
typenr
,
std
::
string
&
name
)
override
{
void
begin_object
(
uint16_t
&
typenr
,
std
::
string
&
name
)
override
{
...
...
libcaf_core/caf/streambuf.hpp
View file @
de9c9d78
...
@@ -114,7 +114,7 @@ protected:
...
@@ -114,7 +114,7 @@ protected:
};
};
/// A streambuffer abstraction over a contiguous container. It supports
/// A streambuffer abstraction over a contiguous container. It supports
/// reading in the same style as
arraybuf
, but is unbounded for output.
/// reading in the same style as
`arraybuf`
, but is unbounded for output.
template
<
class
Container
>
template
<
class
Container
>
class
containerbuf
class
containerbuf
:
public
std
::
basic_streambuf
<
:
public
std
::
basic_streambuf
<
...
@@ -149,7 +149,7 @@ public:
...
@@ -149,7 +149,7 @@ public:
// See note in arraybuf(arraybuf&&).
// See note in arraybuf(arraybuf&&).
// TODO: remove after having raised the minimum GCC version to 5.
// TODO: remove after having raised the minimum GCC version to 5.
containerbuf
(
containerbuf
&&
other
)
containerbuf
(
containerbuf
&&
other
)
:
container_
{
other
.
container_
}
{
:
container_
(
other
.
container_
)
{
this
->
setg
(
other
.
eback
(),
other
.
gptr
(),
other
.
egptr
());
this
->
setg
(
other
.
eback
(),
other
.
gptr
(),
other
.
egptr
());
other
.
setg
(
nullptr
,
nullptr
,
nullptr
);
other
.
setg
(
nullptr
,
nullptr
,
nullptr
);
}
}
...
...
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