X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Freal.h;h=322b02b33de8bcce5fdab624ddde5efadb03d873;hp=b76655884cfa90261cd414114bfb542941677bcc;hb=8b3424a48d2d2e20de1a0e60ff6e1d84b9b5e226;hpb=35f1190c8c8036ed11180656769cf0c1cbf7c2b3 diff --git a/src/real.h b/src/real.h index b766558..322b02b 100644 --- a/src/real.h +++ b/src/real.h @@ -81,7 +81,6 @@ namespace IPDF r *= a; return r; } - struct Vec2 { Real x; @@ -89,6 +88,7 @@ namespace IPDF Vec2() : x(0), y(0) {} Vec2(Real _x, Real _y) : x(_x), y(_y) {} Vec2(const std::pair & p) : x(p.first), y(p.second) {} + Vec2(const std::pair & p) : x(p.first), y(p.second) {} bool operator==(const Vec2& other) const { return (x == other.x) && (y == other.y); } bool operator!=(const Vec2& other) const { return !(*this == other); }