🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by mayer Fri, 25 Apr 1986 01:48
stream package definition
#168
Author: mayer
Date: Fri, 25 Apr 1986 01:48
33 lines
1470 bytes
From: Jim Mayer  <mayer>

There is a minor problem in the definition of the "stream" package, as
defined in the book and in the 1.0 release.  Quoting from the book:

	class ostream {
		// ...
	public:
		ostream& operator<<(char *);
		...
	};

This should really be:

	class ostream {
		// ...
	public:
		ostream& operator<<(const char *);
		...
	};

The way it stands, I have to use "form" to get around the type checking,
or coerce any constant character pointer arguments to (char *) before
printing them.  The change is upwards compatible with what is currently
defined (I've tried it).

Unfortunately, it doesn't seem possible to get around the problem with
overloading either.

-- Jim Mayer					University of Rochester
(arpa) mayer@Rochester.ARPA			Department of Computer Science
(uucp) rochester!mayer				Ray P. Hylan Building
       (via allegra, decvax, or seismo)		Rochester, New York 14627
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads