diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-04-11 03:54:53 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-04-11 03:54:53 +0000 |
commit | 05333fc8af4347cb2d4d2e7a8266ff534e589a32 (patch) | |
tree | 4d38f6a12e39cf1cd5f91a267081fab1cab32235 /libcxx/test/std/iterators | |
parent | a07ad647ee51b9781058e7fcbe5a047f6e296a60 (diff) | |
download | bcm5719-llvm-05333fc8af4347cb2d4d2e7a8266ff534e589a32.tar.gz bcm5719-llvm-05333fc8af4347cb2d4d2e7a8266ff534e589a32.zip |
Implement LWG#680, which was missed lo these many moons ago, and was reported as bug #27259. As a drive-by fix, replace the hand-rolled equivalent to addressof in __wrap_iter with the real thing.
llvm-svn: 265914
Diffstat (limited to 'libcxx/test/std/iterators')
-rw-r--r-- | libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/types.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/types.pass.cpp b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/types.pass.cpp index 9bdf7215e9e..1a3081ffc49 100644 --- a/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/types.pass.cpp +++ b/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/types.pass.cpp @@ -18,7 +18,7 @@ // public: // typedef Iter iterator_type; // typedef Iter::difference_type difference_type; -// typedef Iterator pointer; +// typedef Iter pointer; // typedef Iter::value_type value_type; // typedef value_type&& reference; // }; @@ -36,7 +36,7 @@ test() typedef std::iterator_traits<It> T; static_assert((std::is_same<typename R::iterator_type, It>::value), ""); static_assert((std::is_same<typename R::difference_type, typename T::difference_type>::value), ""); - static_assert((std::is_same<typename R::pointer, typename T::pointer>::value), ""); + static_assert((std::is_same<typename R::pointer, It>::value), ""); static_assert((std::is_same<typename R::value_type, typename T::value_type>::value), ""); #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES static_assert((std::is_same<typename R::reference, typename R::value_type&&>::value), ""); |