From: Jonathan Wakely Date: Mon, 4 Jun 2018 16:07:55 +0000 (+0100) Subject: Define std::fpos special members as defaulted X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=389f775789f85f242199ef76bf5d0e2b1927c00a;p=gcc.git Define std::fpos special members as defaulted * include/bits/postypes.h (fpos): Define special members as defaulted. From-SVN: r261156 --- 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; }