www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/17/11:13:15

Message-ID: <3628ABEC.1C48954E@montana.com>
Date: Sat, 17 Oct 1998 08:38:36 -0600
From: bowman <bowman AT montana DOT com>
X-Mailer: Mozilla 4.5b2 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: YAFM for GCC -x C++ mode ;)
References: <36288d09 DOT 1547393 AT news DOT pathcom DOT com>
Reply-To: djgpp AT delorie DOT com


Oliver Richman wrote:
> 
> If you know what causes this then you are cool.
> 
>                 "Warning: Class Coord3d only declares
>                 private destructor and has no friends."
>                                    ^^^^^^^^^^^^^^^^^^^

very simple. all class definitions are 'private' by default, and private
members can only be accessed by other members of the class and friends.
you have declared a dtor, but you didn't use the 'public' label, so it
is inaccessible.

try

class foo {

public:
   ~foo(void);
};


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019