* [patch] Rename template parameter of std::__alloc_rebind
@ 2015-05-01 15:23 Jonathan Wakely
2015-05-28 12:53 ` Jonathan Wakely
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Wakely @ 2015-05-01 15:23 UTC (permalink / raw)
To: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 122 bytes --]
The name of this alias template is a copy&paste error, it should be
_Alloc. Tested powerpc64le-linux, committed to trunk.
[-- Attachment #2: patch.txt --]
[-- Type: text/x-patch, Size: 835 bytes --]
commit a772309ec9fc300e57edd750fa32b8320d68004a
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri May 1 16:12:16 2015 +0100
* include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
diff --git a/libstdc++-v3/include/bits/alloc_traits.h b/libstdc++-v3/include/bits/alloc_traits.h
index d6c42ec..12c6c12 100644
--- a/libstdc++-v3/include/bits/alloc_traits.h
+++ b/libstdc++-v3/include/bits/alloc_traits.h
@@ -72,8 +72,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
typedef _Alloc<_Tp, _Args...> __type;
};
- template<typename _Ptr, typename _Tp>
- using __alloc_rebind = typename __alloctr_rebind<_Ptr, _Tp>::__type;
+ template<typename _Alloc, typename _Tp>
+ using __alloc_rebind = typename __alloctr_rebind<_Alloc, _Tp>::__type;
/**
* @brief Uniform interface to all allocator types.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] Rename template parameter of std::__alloc_rebind
2015-05-01 15:23 [patch] Rename template parameter of std::__alloc_rebind Jonathan Wakely
@ 2015-05-28 12:53 ` Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2015-05-28 12:53 UTC (permalink / raw)
To: libstdc++, gcc-patches
On 01/05/15 16:23 +0100, Jonathan Wakely wrote:
>The name of this alias template is a copy&paste error, it should be
>_Alloc. Tested powerpc64le-linux, committed to trunk.
Also committed to gcc-5-branch.
>commit a772309ec9fc300e57edd750fa32b8320d68004a
>Author: Jonathan Wakely <jwakely@redhat.com>
>Date: Fri May 1 16:12:16 2015 +0100
>
> * include/bits/alloc_traits.h (__alloc_rebind): Change parameter name.
>
>diff --git a/libstdc++-v3/include/bits/alloc_traits.h b/libstdc++-v3/include/bits/alloc_traits.h
>index d6c42ec..12c6c12 100644
>--- a/libstdc++-v3/include/bits/alloc_traits.h
>+++ b/libstdc++-v3/include/bits/alloc_traits.h
>@@ -72,8 +72,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
> typedef _Alloc<_Tp, _Args...> __type;
> };
>
>- template<typename _Ptr, typename _Tp>
>- using __alloc_rebind = typename __alloctr_rebind<_Ptr, _Tp>::__type;
>+ template<typename _Alloc, typename _Tp>
>+ using __alloc_rebind = typename __alloctr_rebind<_Alloc, _Tp>::__type;
>
> /**
> * @brief Uniform interface to all allocator types.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-28 12:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-01 15:23 [patch] Rename template parameter of std::__alloc_rebind Jonathan Wakely
2015-05-28 12:53 ` Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).