I have a class defined like somewhat below where copy constructor and assignment operator are deleted. QAC is throwing a warning that "This class has declared default or deleted special members but no destructor". Why is the warning and how to I solve it?
class A
{
public:
static A& getInstance()
{
static A AInstance;
return AInstance;
}
A(A const&) = delete;
void operator=(A const&) = delete;
private:
A();
};