diff --git a/include/boost/ut.hpp b/include/boost/ut.hpp index 9f2e731b..3db532d3 100644 --- a/include/boost/ut.hpp +++ b/include/boost/ut.hpp @@ -1413,14 +1413,14 @@ class printer { template auto& operator<<(const detail::and_& op) { - return (*this << '(' << op.lhs() << color(op) << " and " << colors_.none - << op.rhs() << ')'); + return (*this << color(op) << '(' << op.lhs() << color(op) << " and " + << op.rhs() << color(op) << ')') << colors_.none; } template auto& operator<<(const detail::or_& op) { - return (*this << '(' << op.lhs() << color(op) << " or " << colors_.none - << op.rhs() << ')'); + return (*this << color(op) << '(' << op.lhs() << color(op) << " or " + << op.rhs() << color(op) << ')') << colors_.none; } template