🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Thu, 23 Feb 1989 18:29
missing warning in G++ 1.33.0 - totally private classes
#1703
Author: Ron Guilmette
Date: Thu, 23 Feb 1989 18:29
20 lines
958 bytes
It seem that a class which has absolutely no public or protected
member functions or data-members is totally useless.  Right?

If that is true, then the declaration of any such class should
reasonable elicit a warning from the compiler.

For instance,

class x {
	int x_private_data;
	int x_private_method ();
};

Is silly.

// Ron Guilmette  -  MCC  -  Experimental (parallel) Systems Kit Project
// 3500 West Balcones Center Drive,  Austin, TX  78759  -  (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg
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