Hi Petr,
Maybe we should create a list with warnings that are being “ignored” (resolved as non-problematic and hard/superfluous to fix)?
That’s a good idea! We could keep a list of warnings that should be ignored and write a tiny script to filter all Qt, 3rdParty and ignored warnings! That would be a perfect solution!
#define REFERENCE_OBJECT(Class)
Class (const Class &);
Class & operator= (const Class &);
// Reference objects should be compared only as pointers, so disable comparison operators
bool operator== (const Class &);
bool operator!= (const Class &);
You’re right! But are operator== and != generated automatically by the compiler? I think rather not (but have to check again). Another idea would be to implement these operators like return this == &other;, which would be useless if we always use pointers for ReferenceObjects rather references.
#define STATIC_HELPER(Class)
Class();
// Since there is no need to have these in the class (generated by compiler), disable them
~Class();
Class (const Class &);
Class & operator= (const Class &);
OK!
+ add some docs (I think that Doxygen has tags to document macros).
Sure!
Regards,
Peter
