stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r588744 - /incubator/stdcxx/branches/4.2.x/tests/containers/23.vector.allocator.cpp
Date Fri, 26 Oct 2007 18:51:04 GMT
Author: faridz
Date: Fri Oct 26 11:51:03 2007
New Revision: 588744

URL: http://svn.apache.org/viewvc?rev=588744&view=rev
Log:
2007-10-26 Farid Zaripov <farid_zaripov@epam.com>

	* 23.vector.allocator.cpp (address): Use the proper Pointer<> ctor.

Modified:
    incubator/stdcxx/branches/4.2.x/tests/containers/23.vector.allocator.cpp

Modified: incubator/stdcxx/branches/4.2.x/tests/containers/23.vector.allocator.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/tests/containers/23.vector.allocator.cpp?rev=588744&r1=588743&r2=588744&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/tests/containers/23.vector.allocator.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/tests/containers/23.vector.allocator.cpp Fri Oct 26 11:51:03
2007
@@ -165,11 +165,12 @@
     typedef std::random_access_iterator_tag iterator_category;
 
     pointer address (reference r) const {
-        return pointer (&r);
+        return pointer (_RWSTD_REINTERPRET_CAST (difference_type, &r), 1);
     }
 
     const_pointer address (const_reference r) const {
-        return const_pointer (&r);
+        return const_pointer (_RWSTD_REINTERPRET_CAST (difference_type, &r),
+                              1);
     }
 
     Allocator () throw () {}



Mime
View raw message