Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!odi!benson From: benson@odi.com (Benson I. Margulies) Newsgroups: comp.lang.c++ Subject: ostream_with_assign versus specialization of cout? Message-ID: <1989Dec19.175438.12843@odi.com> Date: 19 Dec 89 17:54:38 GMT Reply-To: benson@odi.com () Organization: Object Design Inc., Burlington, MA Lines: 12 I've got a derived class of ostream that internally sets the unitbuf flag. I tried cout = one_of_my_streams; The operator= goes and reinitializes the stream, clearing the crucial flag (unitbuf). If operator= is going to do this, it seems that cout should have been a pointer. As it is, one can't make cout be another type, it seems. -- Benson I. Margulies