Message ID | 20180604160713.GA14057@redhat.com |
---|---|
State | New |
Headers | show |
Series | Define std::fpos special members as defaulted | expand |
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; }