#1589: suspicious code for operator+ in bboxset2 ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: eschnett Type: defect | Status: closed Priority: major | Milestone: Component: Carpet | Version: development version Resolution: fixed | Keywords: Carpet ---------------------+------------------------------------------------------
Comment (by eschnett):
A correction, for the record -- I misspoke slightly.
{{{operator+}}} is not the symmetric set difference, this is {{{operator^}}}. {{{operator+}}} is the set union (similar to {{{operator|}}}), but the caller guarantees that the sets are disjoint, which allows certain optimizations. In this case, {{{operator|}}} is the same as {{{operator^}}}, so we can use the (here much cheaper) {{{operator^}}} to implement {{{operator+}}}.