Boost logo

Ublas :

Subject: [ublas] <boost/numeric/ublas/matrix.hpp> includes <iostream>. Is it better not to do so?
From: Peng Yu (pengyu.ut_at_[hidden])
Date: 2008-09-19 14:54:07


Hi,

It seems that <boost/numeric/ublas/matrix.hpp> includes <iostream>. I
remember that it is better not to include <iostream> but something like
<ostream> and <istream>, or even simply <iosfwd>.

I'm wondering if this issue shall be corrected in the future version of
ublas.

Thanks,
Peng

#include <boost/numeric/ublas/matrix.hpp>

int main () {
  std::cout << "Hello" << std::endl;
}