PR libstdc++/68222 Hide safe iterator operators

Jonathan Wakely jwakely@redhat.com
Tue Aug 7 22:39:00 GMT 2018


On 02/08/18 22:16 +0200, François Dumont wrote:
>+#if __cplusplus >= 201103L
>+      /** @brief Copy assignment. */
>+      _Safe_tagged_iterator&
>+      operator=(const _Safe_tagged_iterator&) = default;
>+
>+      /** @brief Move assignment. */
>+      _Safe_tagged_iterator&
>+      operator=(_Safe_tagged_iterator&&) = default;
>+#else
>+      /**
>+       * @brief Copy assignment.
>+       */
>+      _Safe_tagged_iterator&
>+      operator=(const _Safe_tagged_iterator& __x) _GLIBCXX_NOEXCEPT

This _GLIBCXX_NOEXCEPT can be removed, because it expands to nothing
for C++98 mode.


>+      {
>+	_Safe_base::operator=(__x);
>+	return *this;
>+      }
>+#endif



More information about the Libstdc++ mailing list