Ticket #13 (closed bug: fixed)
QgsUniqueValueRenderer::operator= must return a value
Description
Assignment operator must return a value. Trying to compile this code using VC++ or Comeau C/C++:
struct A
{
A& operator=(A const& rhs)
{
}
};
I get this error:
MODE:strict errors C++ "ComeauTest.c", line 5: warning: missing return statement at end of non-void function "A::operator=" } ^
This is ISO C++ conformant behaviour.
There are many assignment operators defined as not returning any value. This is a bug!
Change History
Note: See
TracTickets for help on using
tickets.