Commit de9c9d78 authored by Dominik Charousset's avatar Dominik Charousset

Work around more GCC 4.8 bugs

parent 1673d0b3
......@@ -53,14 +53,14 @@ class stream_deserializer : public deserializer {
public:
template <class... Ts>
explicit stream_deserializer(actor_system& sys, Ts&&... xs)
: deserializer{sys},
streambuf_{std::forward<Ts>(xs)...} {
: deserializer(sys),
streambuf_(std::forward<Ts>(xs)...) {
}
template <class... Ts>
explicit stream_deserializer(execution_unit* ctx, Ts&&... xs)
: deserializer{ctx},
streambuf_{std::forward<Ts>(xs)...} {
: deserializer(ctx),
streambuf_(std::forward<Ts>(xs)...) {
}
template <
......@@ -73,8 +73,8 @@ public:
>::type
>
explicit stream_deserializer(S&& sb)
: deserializer{nullptr},
streambuf_{std::forward<S>(sb)} {
: deserializer(nullptr),
streambuf_(std::forward<S>(sb)) {
}
void begin_object(uint16_t& typenr, std::string& name) override {
......
......@@ -51,13 +51,13 @@ class stream_serializer : public serializer {
public:
template <class... Ts>
explicit stream_serializer(actor_system& sys, Ts&&... xs)
: serializer{sys},
: serializer(sys),
streambuf_{std::forward<Ts>(xs)...} {
}
template <class... Ts>
explicit stream_serializer(execution_unit* ctx, Ts&&... xs)
: serializer{ctx},
: serializer(ctx),
streambuf_{std::forward<Ts>(xs)...} {
}
......@@ -71,8 +71,8 @@ public:
>::type
>
explicit stream_serializer(S&& sb)
: serializer{nullptr},
streambuf_{std::forward<S>(sb)} {
: serializer(nullptr),
streambuf_(std::forward<S>(sb)) {
}
void begin_object(uint16_t& typenr, std::string& name) override {
......
......@@ -114,7 +114,7 @@ protected:
};
/// 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>
class containerbuf
: public std::basic_streambuf<
......@@ -149,7 +149,7 @@ public:
// See note in arraybuf(arraybuf&&).
// TODO: remove after having raised the minimum GCC version to 5.
containerbuf(containerbuf&& other)
: container_{other.container_} {
: container_(other.container_) {
this->setg(other.eback(), other.gptr(), other.egptr());
other.setg(nullptr, nullptr, nullptr);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment