From 7007b76db6f9aa2982a0b1c0907c7c1da8bb5a1f Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 5 Jan 2015 18:08:20 +1100 Subject: [PATCH] point: add static const member ORIGIN --- point.cpp | 4 ++++ point.hpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/point.cpp b/point.cpp index 01ee16fc..40f15c8c 100644 --- a/point.cpp +++ b/point.cpp @@ -145,6 +145,10 @@ util::point::sanity (void) const { } +//----------------------------------------------------------------------------- +template +const util::point util::point::ORIGIN (T {0}); + //----------------------------------------------------------------------------- template util::point diff --git a/point.hpp b/point.hpp index 2e3693b6..d93dd09d 100644 --- a/point.hpp +++ b/point.hpp @@ -61,6 +61,8 @@ namespace util { template point redim (void) const; + static const point ORIGIN; + void sanity (void) const; };