Add some typename specifiers

This commit is contained in:
Pavel Krajcevski 2014-03-12 03:01:28 -04:00
parent 479ba8e76d
commit e96cecc13a

View File

@ -110,7 +110,7 @@ namespace FasTC {
const VectorTypeTwo &v2) {
VectorTypeOne a(v1);
for(int i = 0; i < VectorTypeOne::Size; i++) {
a(i) += static_cast<VectorTypeOne::ScalarType>(v2[i]);
a(i) += static_cast<typename VectorTypeOne::ScalarType>(v2[i]);
}
return a;
}
@ -132,7 +132,7 @@ namespace FasTC {
const VectorTypeTwo &v2) {
VectorTypeOne a(v1);
for(int i = 0; i < VectorTypeOne::Size; i++) {
a(i) -= static_cast<VectorTypeOne::ScalarType>(v2[i]);
a(i) -= static_cast<typename VectorTypeOne::ScalarType>(v2[i]);
}
return a;
}