Fix gross bug in VectorBase

This commit is contained in:
Pavel Krajcevski 2014-02-16 12:30:09 -05:00
parent a530ae937e
commit e20d84b1ee

View File

@ -170,8 +170,8 @@ namespace FasTC {
VectorSwitch(const TypeOne &a, const TypeTwo &b)
: m_A(a), m_B(b) { }
const TypeOne &GetVector() { return m_A; }
const TypeTwo &GetScalar() { return m_B; }
const VectorType &GetVector() { return m_A; }
const ScalarType &GetScalar() { return m_B; }
};
template<typename TypeOne, typename TypeTwo>
@ -187,8 +187,8 @@ namespace FasTC {
VectorSwitch(const TypeOne &a, const TypeTwo &b)
: m_A(a), m_B(b) { }
const TypeOne &GetVector() { return m_B; }
const TypeTwo &GetScalar() { return m_A; }
const VectorType &GetVector() { return m_B; }
const ScalarType &GetScalar() { return m_A; }
};
template<typename VectorType, typename ScalarType>