Sfoglia il codice sorgente

arraynd: removing ComputeTotalSize for specialization also.

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> 10 anni fa
parent
commit
b3ce9ea902
1 ha cambiato i file con 2 aggiunte e 7 eliminazioni
  1. +2
    -7
      src/lol/math/arraynd.h

+ 2
- 7
src/lol/math/arraynd.h Vedi File

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

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

/* Resize the array.
* FIXME: data gets scrambled; should we care? */
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
{
return ComputeTotalSize(this->m_sizes);
return this->m_sizes;
}

public:


Caricamento…
Annulla
Salva