diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-02 19:32:15 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-02 19:32:15 +0000 |
commit | 69cb84e8eca326c6d571c8a666a5f6d04dadf2ac (patch) | |
tree | b5a8d1233ca0a5e1bfcd27eb5bee2fa69ddb3307 /libstdc++-v3/include/bits/unique_ptr.h | |
parent | 01b685ae435b58bb2496023e1fb664ec0772ec11 (diff) | |
download | gcc-69cb84e8eca326c6d571c8a666a5f6d04dadf2ac.tar.gz |
2011-04-02 Jonathan Wakely <redi@gcc.gnu.org>
PR libstdc++/48398
* include/bits/unique_ptr.h (__tuple_type): Store pointer type.
* testsuite/20_util/unique_ptr/modifiers/48398.cc: New.
* testsuite/20_util/unique_ptr/requirements/pointer_type.cc: Remove
unused parameter name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171894 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/unique_ptr.h')
-rw-r--r-- | libstdc++-v3/include/bits/unique_ptr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/include/bits/unique_ptr.h b/libstdc++-v3/include/bits/unique_ptr.h index 1afc75bcb3f..9db634385c3 100644 --- a/libstdc++-v3/include/bits/unique_ptr.h +++ b/libstdc++-v3/include/bits/unique_ptr.h @@ -100,11 +100,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION typedef decltype( __test<_Del>(0)) type; }; - typedef std::tuple<_Tp*, _Dp> __tuple_type; - __tuple_type _M_t; + typedef std::tuple<typename _Pointer::type, _Dp> __tuple_type; + __tuple_type _M_t; public: - typedef typename _Pointer::type pointer; + typedef typename _Pointer::type pointer; typedef _Tp element_type; typedef _Dp deleter_type; |