]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.10
authorfred <fred>
Sun, 17 Nov 1996 23:42:55 +0000 (23:42 +0000)
committerfred <fred>
Sun, 17 Nov 1996 23:42:55 +0000 (23:42 +0000)
hdr/boxes.hh

index 15beb8c37201a9ee78056922874497697e00f37e..e3ea69a3bf98563ea0ed6b29f24e3eed86f34cd2 100644 (file)
@@ -42,7 +42,15 @@ struct Interval {
        min += t;
        max += t;
     }
-
+    Real operator[](int j) {
+       if (j==-1)
+           return min;
+       else if (j==1)
+           return max;
+       else
+           assert(false);
+               
+    }
     void unite(Interval h) {
        if (h.min<min)
            min = h.min;