Commit 1da2fd22 authored by Jason Rhinelander's avatar Jason Rhinelander

Declared range_ class final

There's no point in allowing subclasses
parent 2086f589
......@@ -82,7 +82,7 @@ all_combinations(
* which returns just such a pair. This class is typically invoked via the range() function.
*/
template <class Iter>
class range_ : public std::pair<Iter, Iter> {
class range_ final : public std::pair<Iter, Iter> {
public:
range_(std::pair<Iter, Iter> const &pair) : std::pair<Iter, Iter>(pair) {}
Iter begin() const { return this->first; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment