Commit 8a5e37c5 authored by ufownl's avatar ufownl Committed by Dominik Charousset

Fix `actor_ostream`

To avoid the extra quotation marks when printing `std::string`.
parent f15bcc34
...@@ -62,6 +62,11 @@ public: ...@@ -62,6 +62,11 @@ public:
return write(arg); return write(arg);
} }
/// Writes `arg` to the buffer allocated for the calling actor.
inline actor_ostream& operator<<(std::string arg) {
return write(std::move(arg));
}
/// Writes `to_string(arg)` to the buffer allocated for the calling actor, /// Writes `to_string(arg)` to the buffer allocated for the calling actor,
/// calling either `std::to_string` or `caf::to_string` depending on /// calling either `std::to_string` or `caf::to_string` depending on
/// the argument. /// the argument.
......
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