// if only part of the paragraphs will be outputed
if (runparams.par_begin != runparams.par_end) {
- par = next(paragraphs.begin(), runparams.par_begin);
- pend = next(paragraphs.begin(), runparams.par_end);
+ par = lyx::next(paragraphs.begin(), runparams.par_begin);
+ pend = lyx::next(paragraphs.begin(), runparams.par_end);
// runparams will be passed to nested paragraphs, so
// we have to reset the range parameters.
const_cast<OutputParams&>(runparams).par_begin = 0;