Re: Error C2535 With vector ("member function already defined")
- From: "Bo Persson" <bop@xxxxxx>
- Date: Sat, 26 Aug 2006 10:54:29 +0200
"Swen Johnson" <SwenJohnson@xxxxxxxxxxxxxxxxxxxxxxxxx> skrev i
meddelandet news:B3D80D28-02A1-466D-B787-ACA899B5F433@xxxxxxxxxxxxxxxx
Here's an excerpt from C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xmemory:
62 // TEMPLATE CLASS allocator
63 template<class _Ty>
64 class allocator
65 { // generic allocator for objects of class _Ty
66 public:
67 typedef _SIZT size_type;
68 typedef _PDFT difference_type;
69 typedef _Ty _FARQ *pointer;
70 typedef const _Ty _FARQ *const_pointer;
71 typedef _Ty _FARQ& reference;
72 typedef const _Ty _FARQ& const_reference;
73 typedef _Ty value_type;
74
75 template<class _Other>
76 struct rebind
77 { // convert an allocator<_Ty> to an allocator <_Other>
78 typedef allocator<_Other> other;
79 };
80
81 pointer address(reference _Val) const
82 { // return address of mutable _Val
83 return (&_Val);
84 }
85
86 const_pointer address(const_reference _Val) const
87 { // return address of nonmutable _Val
88 return (&_Val);
89 }
90
91 allocator()
92 { // construct default allocator (do nothing)
93 }
94
95 allocator(const allocator<_Ty>&)
96 { // construct by copying (do nothing)
97 }
Thanks for all your help,
-- Swen
This looks very much like the VS2002 version of the header, not
version 2003.
The last line of the file says V3.10 for my 2002 version, and V3.13
for the 2003 edition.
Bo Persson
.
- References:
- Error C2535 With vector ("member function already defined")
- From: Swen Johnson
- Re: Error C2535 With vector ("member function already defined")
- From: Tom Widmer [VC++ MVP]
- Re: Error C2535 With vector ("member function already defined")
- From: Swen Johnson
- Error C2535 With vector ("member function already defined")
- Prev by Date: Re: Error C2535 With vector ("member function already defined")
- Next by Date: Deleting an element from a list in a loop
- Previous by thread: Re: Error C2535 With vector ("member function already defined")
- Next by thread: MSVC2005: problem with valarray<valarray<T> >
- Index(es):
Relevant Pages
|