Skip to content

Commit

Permalink
Removing const in const auto (return value) (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Oct 15, 2023
1 parent d8f77a1 commit ece13bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/ada/url_search_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ struct url_search_params {
* C++ style conventional iterator support. const only because we
* do not really want the params to be modified via the iterator.
*/
inline const auto begin() const { return params.begin(); }
inline const auto end() const { return params.end(); }
inline const auto front() const { return params.front(); }
inline const auto back() const { return params.back(); }
inline const auto operator[](size_t index) const { return params[index]; }
inline auto begin() const { return params.begin(); }
inline auto end() const { return params.end(); }
inline auto front() const { return params.front(); }
inline auto back() const { return params.back(); }
inline auto operator[](size_t index) const { return params[index]; }

private:
typedef std::pair<std::string, std::string> key_value_pair;
Expand Down

0 comments on commit ece13bb

Please sign in to comment.