fix PTA_Vertex::set_element()

This commit is contained in:
David Rose 2005-01-27 00:40:06 +00:00
parent c92207d81a
commit 22a4972fe0
2 changed files with 4 additions and 4 deletions

View File

@ -322,7 +322,7 @@ operator [](int n) const {
// a confusion with the pointer typecast operator.
////////////////////////////////////////////////////////////////////
template<class Element>
INLINE TYPENAME PointerToArray<Element>::const_reference PointerToArray<Element>::
INLINE const Element &PointerToArray<Element>::
get_element(size_type n) const {
return (*this)[n];
}
@ -338,7 +338,7 @@ get_element(size_type n) const {
////////////////////////////////////////////////////////////////////
template<class Element>
INLINE void PointerToArray<Element>::
set_element(size_type n, const_reference value) {
set_element(size_type n, const Element &value) {
nassertv(n < ((To *)_void_ptr)->size());
(*this)[n] = value;
}

View File

@ -153,8 +153,8 @@ PUBLISHED:
INLINE reference operator [](size_type n) const;
INLINE reference operator [](int n) const;
#endif
INLINE const_reference get_element(size_type n) const;
INLINE void set_element(size_type n, const_reference value);
INLINE const Element &get_element(size_type n) const;
INLINE void set_element(size_type n, const Element &value);
INLINE void push_back(const Element &x);
INLINE void pop_back();