#13 closed bug (fixed)
QgsUniqueValueRenderer::operator= must return a value
Reported by: | mloskot | Owned by: | gsherman |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | |
Component: | Vectors | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
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 (6)
comment:1 by , 18 years ago
Type: | defect → bug |
---|
comment:2 by , 18 years ago
Status: | new → assigned |
---|
comment:5 by , 17 years ago
Awaiting user input: | unset |
---|---|
Must Fix for Release: | → No |
Note:
See TracTickets
for help on using tickets.
As far as I can tell, it does return a value.