rangetree: support for building on freebsd-10
authorCampbell Barton <ideasman42@gmail.com>
Sat, 16 Nov 2013 07:31:13 +0000 (18:31 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 16 Nov 2013 07:31:13 +0000 (18:31 +1100)
extern/rangetree/range_tree.hh

index 2a47c5a1d939258d63efa54cca6e0ab9dc414b5f..a88c70281b68dd26c9fef48ad888919d1259e091 100644 (file)
@@ -35,6 +35,11 @@ struct RangeTree {
                        : min(t), max(t), single(true)
                {}
 
+               Range& operator=(const Range& v) {
+                       *this = v;
+                       return *this;
+               }
+
                bool operator<(const Range& v) const {
                        return max < v.min;
                }