along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#ifndef __libmisc_transmitter_h__
#include <sigc++/sigc++.h>
-using std::cout;
-using std::cerr;
-using std::endl;
-
class Transmitter : public std::stringstream
{
see if ostr == cout, and handle it specially.
*/
- if (&ostr == &cout) {
- cout << endl;
+ if (&ostr == &std::cout) {
+ std::cout << std::endl;
return ostr;
- } else if (&ostr == &cerr) {
- cerr << endl;
+ } else if (&ostr == &std::cerr) {
+ std::cerr << std::endl;
return ostr;
}
it and assume that that will be enough.
*/
- ostr << endl;
+ ostr << std::endl;
}
return ostr;