23 + Rectangle intersection_with(Rectangle const& r) const;
Hmm, I would (slightly) prefer a free function for a symmetric operation. Vis:
Rectangle intersection_of(Rectangle const& l, Rectangle const& r);
PS I thought briefly about operator&() but that gives an asymmetry with operator|().
« Back to merge proposal
23 + Rectangle intersection_ with(Rectangle const& r) const;
Hmm, I would (slightly) prefer a free function for a symmetric operation. Vis:
Rectangle intersection_ of(Rectangle const& l, Rectangle const& r);
PS
I thought briefly about operator&() but that gives an asymmetry with operator|().