Commit fc60f8a7 authored by Dominik Charousset's avatar Dominik Charousset

Fix build on GCC

parent 69ea9979
...@@ -153,11 +153,15 @@ bi_pair tb_assign(Ts&&... xs) { ...@@ -153,11 +153,15 @@ bi_pair tb_assign(Ts&&... xs) {
return {x.valid, x.pos}; return {x.valid, x.pos};
} }
std::ostream& operator<<(std::ostream& out, bi_pair x) { namespace std {
ostream& operator<<(ostream& out, const pair<bool, int>& x) {
// do not modify stream with boolalpha // do not modify stream with boolalpha
return out << '(' << (x.first ? "true" : "false") << ", " << x.second << ')'; return out << '(' << (x.first ? "true" : "false") << ", " << x.second << ')';
} }
} // namespace std
CAF_TEST(typed_behavior_assignment) { CAF_TEST(typed_behavior_assignment) {
using bh1 = typed_beh<replies_to<int>::with<double>, using bh1 = typed_beh<replies_to<int>::with<double>,
replies_to<double, double>::with<int, int>>; replies_to<double, double>::with<int, int>>;
......
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