Skip to content
Snippets Groups Projects
Sébastien Villemot's avatar
Sébastien Villemot authored
Input and output ranges should not overlap when calling std::set_union(),
otherwise the behaviour is undefined.

It seems that in this precise case the computation would still be
correct (though inefficient), because of the properties of std::set or because
of the specific implementation in libstdc++. But it’s better to be on the safe
side.
fe83933b
History
Name Last commit Last update