Removed fvector and replaced with FixedArray.

Needs replacing with std::array when we get to c++11
This commit is contained in:
Jacob Støren
2014-08-07 15:53:05 +02:00
committed by Magne Sjaastad
parent 0f26b6e22f
commit 7a3d90daa4
4 changed files with 10 additions and 25 deletions

View File

@@ -55,8 +55,8 @@ public:
FixedArray<T, size>& operator=(const T* ptr) { for (size_t i = 0; i < size ; ++i) m_array[i] = ptr[i]; return *this;}
template<typename IndexType> T& operator[](const IndexType& index) { CVF_TIGHT_ASSERT(static_cast<size_t>(index) < size); return m_array[index]; }
template<typename IndexType> const T& operator[](const IndexType& index) const { CVF_TIGHT_ASSERT(static_cast<size_t>(index) < size); return m_array[index]; }
template<typename IndexType> T& operator[](const IndexType& index) { return m_array[index]; }
template<typename IndexType> const T& operator[](const IndexType& index) const { return m_array[index]; }
};
typedef FixedArray<int, 3> IntArray3;