Cleanup: make it easier to check if a CPPType is a specific compile time type

This commit is contained in:
2020-06-27 13:28:26 +02:00
parent 563670ff9e
commit 2350159101
5 changed files with 16 additions and 5 deletions

View File

@@ -167,7 +167,7 @@ template<typename T> class GVectorArrayRef {
public:
GVectorArrayRef(GVectorArray &vector_array) : m_vector_array(&vector_array)
{
BLI_assert(vector_array.m_type == CPPType::get<T>());
BLI_assert(vector_array.m_type.is<T>());
}
void append(uint index, const T &value)