From 93572a8f0b5c85d7b6e8fdec23c2e5ad6364b889 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 30 Dec 2017 17:15:24 -0800 Subject: [PATCH] Fixed dbEdges iterator (ported fix of dbRegion iterator for MacOS/clang to dbEdges too) --- src/db/db/dbEdges.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/db/db/dbEdges.h b/src/db/db/dbEdges.h index 68fe606d2..17788cde3 100644 --- a/src/db/db/dbEdges.h +++ b/src/db/db/dbEdges.h @@ -229,8 +229,11 @@ private: * @brief ctor from a recursive shape iterator */ EdgesIterator (const db::RecursiveShapeIterator &iter, const db::ICplxTrans &trans) - : m_rec_iter (iter), m_iter_trans (trans) - { + : m_rec_iter (iter), m_iter_trans (trans), m_from (), m_to () + { + // NOTE: the following initialization appears to be required on some compilers + // (specifically MacOS/clang) to ensure the proper initialization of the iterators + m_from = m_to; set (); }