help-gplusplus
[Top][All Lists]
Advanced

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

How do I suppress this warning?


From: red floyd
Subject: How do I suppress this warning?
Date: Tue, 01 Feb 2005 20:05:01 GMT
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

GCC 3.2.2 (Mandrake 9.1)

How do I suppress this warning:

'class myClass' only defines private constructors and has no friends

This class is only created by a class factory. The class factory calls a static member function to do the construction, i.e.:


class myClass {
    private:
        myClass();
    public:
        ~myClass();
        static myClass* Create() { return new myClass; }
};






reply via email to

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