From 51b9036bc4e51c2ae6db5b193a98e8466cff691a Mon Sep 17 00:00:00 2001 From: fdumont Date: Tue, 20 Feb 2018 20:51:44 +0000 Subject: =?UTF-8?q?2018-02-20=20=20Fran=C3=A7ois=20Dumont=20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * include/ext/aligned_buffer.h [_GLIBCXX_INLINE_VERSION] (template<> __aligned_buffer): Define as __aligned_membuf alias. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257861 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/include/ext/aligned_buffer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libstdc++-v3/include/ext/aligned_buffer.h') diff --git a/libstdc++-v3/include/ext/aligned_buffer.h b/libstdc++-v3/include/ext/aligned_buffer.h index 94a2ff0e67a..81fb797723c 100644 --- a/libstdc++-v3/include/ext/aligned_buffer.h +++ b/libstdc++-v3/include/ext/aligned_buffer.h @@ -75,6 +75,10 @@ namespace __gnu_cxx { return static_cast(_M_addr()); } }; +#if _GLIBCXX_INLINE_VERSION + template + using __aligned_buffer = __aligned_membuf<_Tp>; +#else // Similar to __aligned_membuf but aligned for complete objects, not members. // This type is used in , , // and , but ideally they would use __aligned_membuf @@ -113,6 +117,7 @@ namespace __gnu_cxx _M_ptr() const noexcept { return static_cast(_M_addr()); } }; +#endif } // namespace -- cgit v1.2.1