libstdc++-v3/ChangeLog:
* include/ext/aligned_buffer.h (__aligned_buffer): Add
diagnostic pragmas.
template<typename _Tp>
using __aligned_buffer = __aligned_membuf<_Tp>;
#else
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
// Similar to __aligned_membuf but aligned for complete objects, not members.
// This type is used in <forward_list>, <future>, <bits/shared_ptr_base.h>
// and <bits/hashtable_policy.h>, but ideally they would use __aligned_membuf
_M_ptr() const noexcept
{ return static_cast<const _Tp*>(_M_addr()); }
};
+#pragma GCC diagnostic pop
#endif
} // namespace