Skip to content
Snippets Groups Projects
Commit 9dbbc939 authored by Michael Wedel's avatar Michael Wedel
Browse files

Proper default constructor for HKLGenerator::const_iterator

Refs #14023.
parent f9e5a621
No related branches found
No related tags found
No related merge requests found
......@@ -113,8 +113,7 @@ public:
: public boost::iterator_facade<const_iterator, const Kernel::V3D &,
boost::forward_traversal_tag> {
public:
/// Default constructor, requirement from boost::iterator_facade
const_iterator() {}
const_iterator();
explicit const_iterator(const Kernel::V3D &current);
......
......@@ -59,6 +59,11 @@ V3D HKLGenerator::getEndHKL() const {
return V3D(m_hklMax.X() + 1, m_hklMin.Y(), m_hklMin.Z());
}
/// Default constructor, requirement from boost::iterator_facade
HKLGenerator::const_iterator::const_iterator()
: m_h(0), m_k(0), m_l(0), m_hkl(0), m_hMin(0), m_hMax(0), m_kMin(0),
m_kMax(0), m_lMin(0), m_lMax(0) {}
/// Return an iterator with min = max = current.
HKLGenerator::const_iterator::const_iterator(const V3D &current)
: m_h(static_cast<int>(current.X())), m_k(static_cast<int>(current.Y())),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment