mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Removed fvector and replaced with FixedArray.
Needs replacing with std::array when we get to c++11
This commit is contained in:
committed by
Magne Sjaastad
parent
0f26b6e22f
commit
7a3d90daa4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user