Define std::fpos special members as defaulted
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Jun 2018 16:07:55 +0000 (17:07 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 4 Jun 2018 16:07:55 +0000 (17:07 +0100)
* include/bits/postypes.h (fpos): Define special members as defaulted.

From-SVN: r261156

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/postypes.h

index 78a9f7fa072500975a98b0e51cefb1dcb59d43cd..ebfdd3658d12d8855c978da7710b84975eab92d8 100644 (file)
@@ -1,5 +1,7 @@
 2018-06-04  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/bits/postypes.h (fpos): Define special members as defaulted.
+
        PR libstdc++/85930
        * include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Align
        the static variable correctly.
index ba7c54781e8d4af2b142d8f2ac67e69509cb3190..8abdbf0232250fb893226c745442abbcf6d68647 100644 (file)
@@ -133,6 +133,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       fpos(streamoff __off)
       : _M_off(__off), _M_state() { }
 
+#if __cplusplus >= 201103L
+      fpos(const fpos&) = default;
+      fpos& operator=(const fpos&) = default;
+      ~fpos() = default;
+#endif
+
       /// Convert to streamoff.
       operator streamoff() const { return _M_off; }