From 389f775789f85f242199ef76bf5d0e2b1927c00a Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 4 Jun 2018 17:07:55 +0100 Subject: [PATCH] Define std::fpos special members as defaulted * include/bits/postypes.h (fpos): Define special members as defaulted. From-SVN: r261156 --- libstdc++-v3/ChangeLog | 2 ++ libstdc++-v3/include/bits/postypes.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 78a9f7fa072..ebfdd3658d1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2018-06-04 Jonathan Wakely + * 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. 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; } -- 2.30.2