diff --git a/quicktex/util/ranges.h b/quicktex/util/ranges.h index 7f6ab4e..d5611a7 100644 --- a/quicktex/util/ranges.h +++ b/quicktex/util/ranges.h @@ -159,6 +159,8 @@ template class const_iterator : public index_iterator_base> { typedef long long difference_type; typedef range_value_t value_type; + friend base; + index_iterator() : base(0), _range(nullptr) {} index_iterator(R &range, size_t index) : base(index), _range(&range) {}