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 <[EMAIL PROTECTED]>

        * 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 () {}


Reply via email to