Merge pull request #215 from bska/fix-build-gcc44

Don't use 'typename' in non-template context
This commit is contained in:
Atgeirr Flø Rasmussen 2014-10-06 13:23:48 +02:00
commit 725a29709e

View File

@ -64,9 +64,9 @@ namespace Opm
this->a = new block_type[this->nnz];
static_assert(sizeof(block_type) == sizeof(double), "This constructor requires a block type that is the same as a double.");
std::copy(sa, sa + this->nnz, reinterpret_cast<double*>(this->a));
this->j.reset(new typename Super::size_type[this->nnz]);
this->j.reset(new Super::size_type[this->nnz]);
std::copy(ja, ja +this-> nnz, this->j.get());
this->r = new typename Super::row_type[rows];
this->r = new Super::row_type[rows];
for (int row = 0; row < rows; ++row) {
this->r[row].set(ia[row+1] - ia[row], this->a + ia[row], this->j.get() + ia[row]);
}