Commit 98c970ea authored by Dominik Charousset's avatar Dominik Charousset

Work around missing view header on debian-8

parent ae804711
......@@ -20,7 +20,6 @@
#include <cstddef>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <utility>
......@@ -118,9 +117,9 @@ public:
void apply(string_view x);
void apply(std::u16string_view x);
void apply(const std::u16string& x);
void apply(std::u32string_view x);
void apply(const std::u32string& x);
void apply(span<const byte> x);
......
......@@ -18,6 +18,8 @@
#include "caf/binary_serializer.hpp"
#include <iomanip>
#include "caf/actor_system.hpp"
#include "caf/detail/ieee_754.hpp"
#include "caf/detail/network_order.hpp"
......@@ -155,7 +157,7 @@ void binary_serializer::apply(string_view x) {
end_sequence();
}
void binary_serializer::apply(std::u16string_view x) {
void binary_serializer::apply(const std::u16string& x) {
auto str_size = x.size();
begin_sequence(str_size);
// The standard does not guarantee that char16_t is exactly 16 bits.
......@@ -164,7 +166,7 @@ void binary_serializer::apply(std::u16string_view x) {
end_sequence();
}
void binary_serializer::apply(std::u32string_view x) {
void binary_serializer::apply(const std::u32string& x) {
auto str_size = x.size();
begin_sequence(str_size);
// The standard does not guarantee that char32_t is exactly 32 bits.
......
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