X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Fdirection.hh;h=befd0aa2ac207e4f2a18208a45bbf0ddb611047b;hb=fd3857da3d3f6a8ec80184d48a6ca0bd48d23091;hp=0ba482fe2c580ff9ac73926879c075484439decc;hpb=2bb13b45f7bfe4bd658809dff7b5ebcad6345b2b;p=lilypond.git diff --git a/flower/include/direction.hh b/flower/include/direction.hh index 0ba482fe2c..befd0aa2ac 100644 --- a/flower/include/direction.hh +++ b/flower/include/direction.hh @@ -75,7 +75,13 @@ flip (Direction *i) if d > 0: the max operator if d < 0: the min operator */ -template T minmax (Direction d, T, T); +template T minmax (Direction d, T a, T b) +{ + if (d == UP) + return max (a, b); + else + return min (a, b); +} // String direction_string (Direction, Axis);