From 1196862b8508e047a323c25613f383bf497f65fc Mon Sep 17 00:00:00 2001 From: Yury Melnichek Date: Mon, 25 Apr 2011 04:03:02 +0200 Subject: [PATCH] Add default constructor to CellId. --- geometry/cellid.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/geometry/cellid.hpp b/geometry/cellid.hpp index 7d4fb0f736..c694549eed 100644 --- a/geometry/cellid.hpp +++ b/geometry/cellid.hpp @@ -15,6 +15,11 @@ public: enum { DEPTH_LEVELS = kDepthLevels }; enum { MAX_COORD = 1 << DEPTH_LEVELS }; + CellId() : m_Bits(0), m_Level(0) + { + ASSERT(IsValid(), ()); + } + explicit CellId(string const & s) { *this = FromString(s);