From 95b4257a4df36516e192d72b12da8673f6af3081 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 30 Jul 2018 07:41:23 -0400 Subject: everything builds with new - operators defined --- lib/height.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/height.h') diff --git a/lib/height.h b/lib/height.h index a4cbbed..d2173fe 100644 --- a/lib/height.h +++ b/lib/height.h @@ -44,6 +44,10 @@ struct height_t { inline double operator*(double a) const { return x * a; } + + inline T operator-(const height_t& h) const { + return x - h.x; + } }; template -- cgit v1.2.3-70-g09d2