Commit 5710a386 authored by Dominik Charousset's avatar Dominik Charousset

Remove calls to deprecated `cppa::cow_tuple` API

parent c5d18064
......@@ -222,7 +222,7 @@ class curl_worker : public base_actor {
return (
on(atom("read"), arg_match)
>> [=](const std::string& fname, uint64_t offset, uint64_t range)
-> cow_tuple<atom_value, buffer_type> {
-> message {
print() << "read" << color::reset_endl;
for (;;) {
m_buf.clear();
......@@ -260,7 +260,7 @@ class curl_worker : public base_actor {
<< color::reset_endl;
// tell parent that this worker is done
send(m_parent, atom("finished"));
return make_cow_tuple(atom("reply"), m_buf);
return make_message(atom("reply"), m_buf);
case 404: // file does not exist
print() << "http error: download failed with "
<< "'HTTP RETURN CODE': 404 (file does "
......
#include <tuple>
#include <vector>
#include "test.hpp"
......@@ -12,7 +13,7 @@ class fixed_stack : public sb_actor<fixed_stack> {
fixed_stack(size_t max) : max_size(max) {
full = (
on(atom("push"), arg_match) >> [=](int) { /* discard */ },
on(atom("pop")) >> [=]() -> cow_tuple<atom_value, int> {
on(atom("pop")) >> [=]() -> std::tuple<atom_value, int> {
auto result = data.back();
data.pop_back();
become(filled);
......@@ -24,7 +25,7 @@ class fixed_stack : public sb_actor<fixed_stack> {
data.push_back(what);
if (data.size() == max_size) become(full);
},
on(atom("pop")) >> [=]() -> cow_tuple<atom_value, int> {
on(atom("pop")) >> [=]() -> std::tuple<atom_value, int> {
auto result = data.back();
data.pop_back();
if (data.empty()) become(empty);
......
......@@ -504,7 +504,7 @@ void test_spawn() {
auto f = [](const string& name) -> behavior {
return (
on(atom("get_name")) >> [name] {
return make_cow_tuple(atom("name"), name);
return make_message(atom("name"), name);
}
);
};
......
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