Commit b727d9c4 by Ray Chason Committed by Paolo Carlini

re PR libstdc++/57808 (operators == and != for regex_token_iterator need to be const)

2013-07-04  Ray Chason  <chasonr@newsguy.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/57808
	* include/bits/regex.h (regex_token_iterator<>::operator==,
	regex_token_iterator<>::operator!=, regex_token_iterator<>::operator*,
	regex_token_iterator<>::operator->): Declare const.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r200662
parent 033d86cc
2013-07-04 Ray Chason <chasonr@newsguy.com>
Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/57808
* include/bits/regex.h (regex_token_iterator<>::operator==,
regex_token_iterator<>::operator!=, regex_token_iterator<>::operator*,
regex_token_iterator<>::operator->): Declare const.
2013-07-01 Paolo Carlini <paolo.carlini@oracle.com> 2013-07-01 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_list.h (list<>::insert(iterator, * include/bits/stl_list.h (list<>::insert(iterator,
......
...@@ -2418,28 +2418,28 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -2418,28 +2418,28 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @todo Implement this function. * @todo Implement this function.
*/ */
bool bool
operator==(const regex_token_iterator& __rhs); operator==(const regex_token_iterator& __rhs) const;
/** /**
* @brief Compares a %regex_token_iterator to another for inequality. * @brief Compares a %regex_token_iterator to another for inequality.
* @todo Implement this function. * @todo Implement this function.
*/ */
bool bool
operator!=(const regex_token_iterator& __rhs); operator!=(const regex_token_iterator& __rhs) const;
/** /**
* @brief Dereferences a %regex_token_iterator. * @brief Dereferences a %regex_token_iterator.
* @todo Implement this function. * @todo Implement this function.
*/ */
const value_type& const value_type&
operator*(); operator*() const;
/** /**
* @brief Selects a %regex_token_iterator member. * @brief Selects a %regex_token_iterator member.
* @todo Implement this function. * @todo Implement this function.
*/ */
const value_type* const value_type*
operator->(); operator->() const;
/** /**
* @brief Increments a %regex_token_iterator. * @brief Increments a %regex_token_iterator.
......
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