Boost logo

Boost :

Subject: [boost] <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 00:08:48


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;
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk