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: Why isn't ostream::osfx/opfx virtual? Message-ID: <1989Dec18.141217.19738@odi.com> Date: 18 Dec 89 14:12:17 GMT Reply-To: benson@odi.com () Organization: Object Design Inc., Burlington, MA Lines: 20 In 2.0, ostream has two functions osfx and opfx that are used to give the stream control (for buffering purposes) before and after output. They aren't virtual. As per my previous message, I need to implement some specializations of ostream that are sensitive to line boundaries. osfx would serve my purposes fine -- if it were virtual. As it is, if I implement my own osfx, it isn't called when ostream::whatever does its thing, so its no use at all. I'm hesitant to add the "virtual", since this version will ship to our customers, and I'd hate to be InComPatIble. If the folks from AT&T would bless the addition of virtual in this spot, I could make the change with a clear conscience. -- Benson I. Margulies