+std::string rectangle_to_string(geom::Rectangle const& rect) +{ + std::stringstream ss; + ss << "{" + << rect.top_left.x.as_int() << ", " + << rect.top_left.y.as_int() << ", " + << rect.size.width.as_int() << ", " + << rect.size.height.as_int() + << "}"; + + return ss.str(); +} ... + << " out_rect=" << rectangle_to_string(out_rect);
We have std::ostream& operator<<(std::ostream& out, Rectangle const& value); in /usr/include/mircommon/mir/geometry/rectangle.h. So all the above could be:
<< " out_rect=" << out_rect;
« Back to merge proposal
+std::string rectangle_ to_string( geom::Rectangle const& rect) left.x. as_int( ) << ", " left.y. as_int( ) << ", " width.as_ int() << ", " height. as_int( ) to_string( out_rect) ;
+{
+ std::stringstream ss;
+ ss << "{"
+ << rect.top_
+ << rect.top_
+ << rect.size.
+ << rect.size.
+ << "}";
+
+ return ss.str();
+}
...
+ << " out_rect=" << rectangle_
We have std::ostream& operator< <(std:: ostream& out, Rectangle const& value); in /usr/include/ mircommon/ mir/geometry/ rectangle. h. So all the above could be:
<< " out_rect=" << out_rect;