help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

singleton warning


From: Michael D. Berger & Rosalie A. Clavez
Subject: singleton warning
Date: Fri, 17 Jan 2003 13:00:00 -0500

Using g++ 2.9.3-5 I got a warning that my constructor is private
and I have no friends.  I am a singleton, and I function correctly.
I blocked the warning with:

        class NoClass;
        friend class NoClass;

Is there a better way?

Thanks,
Mike.
-- 
Michael D. Berger
m.d.berger@ieee.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]