Pārlūkot izejas kodu

arraynd: removing ComputeTotalSize for specialization also.

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> pirms 10 gadiem
vecāks
revīzija
b3ce9ea902
1 mainītis faili ar 2 papildinājumiem un 7 dzēšanām
  1. +2
    -7
      src/lol/math/arraynd.h

+ 2
- 7
src/lol/math/arraynd.h Parādīt failu

@@ -255,21 +255,16 @@ public:
return super::operator[](pos); return super::operator[](pos);
} }


inline size_t ComputeTotalSize(vec_t<size_t, 1> sizes)
{
return m_sizes[0];
}

/* Resize the array. /* Resize the array.
* FIXME: data gets scrambled; should we care? */ * FIXME: data gets scrambled; should we care? */
inline void SetSize(vec_t<size_t, 1> sizes, element_t e = element_t()) inline void SetSize(vec_t<size_t, 1> sizes, element_t e = element_t())
{ {
this->Resize(ComputeTotalSize(sizes), e);
this->Resize(m_sizes[0], e);
} }


inline vec_t<size_t, 1> GetSize() const inline vec_t<size_t, 1> GetSize() const
{ {
return ComputeTotalSize(this->m_sizes);
return this->m_sizes;
} }


public: public:


Notiek ielāde…
Atcelt
Saglabāt