Fix expensive thinko: operator++ returns a reference, not a copy

This accounts for 45% of the row breaking time on the (huge) paragraph
of the MWE in bug #12598.

Fixes part of bug #12598.
This commit is contained in:
Jean-Marc Lasgouttes 2022-11-08 00:06:18 +01:00
parent 5691863043
commit ec151de2cc

View File

@ -979,7 +979,7 @@ class flexible_const_iterator {
public:
//
flexible_const_iterator operator++() {
flexible_const_iterator & operator++() {
if (pile_.empty())
++cit_;
else