This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR libstdc++/68222 Hide safe iterator operators


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]