Commit c2547620 authored by Dominik Charousset's avatar Dominik Charousset

Fix bug in actor_config's to_string

parent 629b72f2
...@@ -31,11 +31,9 @@ actor_config::actor_config(execution_unit* ptr) ...@@ -31,11 +31,9 @@ actor_config::actor_config(execution_unit* ptr)
} }
std::string to_string(const actor_config& x) { std::string to_string(const actor_config& x) {
// Note: x.groups is an input range. Traversing it is emptying it, hence we
// cannot look inside the range here.
std::string result = "actor_config("; std::string result = "actor_config(";
if (x.groups == nullptr)
result += "[]";
else
result += deep_to_string(*x.groups);
auto add = [&](int flag, const char* name) { auto add = [&](int flag, const char* name) {
if ((x.flags & flag) != 0) { if ((x.flags & flag) != 0) {
result += ", "; result += ", ";
......
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