Boost logo

Boost Users :

From: Alexey Nikitin (yg-boost-users_at_[hidden])
Date: 2003-06-21 07:05:02


Hello everyone,
I am try to use Ublas library and have some questions.

I am want to write next code:

template<class Matrix>
void ProcessRecursive(Matrix& m)
{
  typedef matrix_range<typename Matrix::matrix_type> MatrixRange;
  ...
  MatrixRange mr = project(m, range(...), range(...));
  ...
  ProcessRecursive(mr);
  ...
}

void StartProcess()
{
  ...
  matrix<double> m;
  ...
  ProcessRecursive(m);
}

But I have not enough type matrix_type in class matrix<...> and function
template<class M>
matrix_range<M> project(matrix_range<M>& data, const range& r1, const range&
r2);
There is almost the same function project but reciving const referens to
matrix_range and compiler can't find it even using partial template
ordering.

Do somebody help my to write this code correctly? Or fix library?

Regards,
Alexey.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net