Patched PR with leaner solution

This commit is contained in:
Matthias Koefferlein 2022-12-13 21:54:00 +01:00
parent 5a6ea0148a
commit f49fa646fc
1 changed files with 2 additions and 7 deletions

View File

@ -192,13 +192,8 @@ public:
* @brief Default constructor
*/
cell_list_const_iterator (cell_list_iterator<cell_type> iter)
{
if (iter == cell_list_iterator<cell_type>()) {
mp_cell = nullptr;
} else {
mp_cell = &(*iter);
}
}
: mp_cell (iter.operator-> ())
{ }
/**
* @brief Equality