My class is polymorphic and should not be used to be ='d anyways. It has a member which is of type Font& and as a result the compiler cannot generate an = operator. So I just created dummy implementations of the assignment and copy constructor, put them in the private of the class, but it still warns me about assignment operator not able to get generated. How else can I get rid of this warning?
Thanks
Warning 9 warning C4512: 'AguiWidget' : assignment operator could not be generated c:\users\josh\documents\visual studio 2008\projects\agui\alleg_5\agui\aguiwidget.hpp 250
The assignment operator that the compiler is warning you about is the one for your own class. What you have now is:
AguiWidget& operator=(const AguiFont &tmp);
What you need is:
AguiWidget& operator=(const AguiWidget &tmp);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With