Define std::fpos special members as defaulted

Message ID 20180604160713.GA14057@redhat.com
State New
Headers show
Series
  • Define std::fpos special members as defaulted
Related show

Commit Message

Jonathan Wakely June 4, 2018, 4:07 p.m.
* include/bits/postypes.h (fpos): Define special members as defaulted.

Tested powerpc64le-linux, committed to trunk.
commit 24dddbfdccf816b749601980ed05d2bce72e3d24
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Jun 4 16:50:29 2018 +0100

    Define std::fpos special members as defaulted
    
            * include/bits/postypes.h (fpos): Define special members as defaulted.

Patch

diff --git a/libstdc++-v3/include/bits/postypes.h b/libstdc++-v3/include/bits/postypes.h
index ba7c54781e8..8abdbf02322 100644
--- a/libstdc++-v3/include/bits/postypes.h
+++ b/libstdc++-v3/include/bits/postypes.h
@@ -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; }