diff --git a/test/ranges-test.cc b/test/ranges-test.cc index 209318b7..afd3c0f8 100644 --- a/test/ranges-test.cc +++ b/test/ranges-test.cc @@ -89,14 +89,17 @@ template class flat_set { using key_type = T; using container_type = std::vector; + using iterator = typename std::vector::iterator; + using const_iterator = typename std::vector::const_iterator; + template explicit flat_set(Ts&&... args) : c{std::forward(args)...} {} - auto begin() -> decltype(auto) { return c.begin(); } - auto begin() const -> decltype(auto) { return c.begin(); } + iterator begin() { return c.begin(); } + const_iterator begin() const { return c.begin(); } - auto end() -> decltype(auto) { return c.end(); } - auto end() const -> decltype(auto) { return c.end(); } + iterator end() { return c.end(); } + const_iterator end() const { return c.end(); } private: std::vector c;