Boost logo

Ublas :

Subject: Re: [ublas] <boost/numeric/ublas/matrix.hpp> includes <iostream>. Is it better not to do so?
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2008-09-20 15:52:48


Am Freitag, 19. September 2008 20:54 schrieb Peng Yu:
> 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>.

The <iostream> is included by exception.hpp because std::cerr is used.
Further the exception.hpp is (directly or indirectly) used by all ublas
headers.

mfg
Gunter