Opened 15 years ago
Last modified 15 years ago
#909 closed defect
Adding an additional item to a Set with defined structure is not returned as a warning or error. — at Version 1
Reported by: | Lander Ibarra Iriondo | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | SetAlgebra | Version: | 1.1.7 |
Severity: | major | Keywords: | |
Cc: |
Description (last modified by )
There is a strange behavior with versions 1.1.7 and 1.1.7_Bridge that does not happen or has been fixed with version 2.
If we throw this piece of code on the version 1.7
Polyn Pol = 0.08+0.05*B; Set Ser_ = InputDef(Pol, SubSer(Gaussian(100,1, Diario), y2000, y2002)); Set Ser_ << SetOfText("");
Adding an additional item to a Set with defined structure is not returned as a warning or error.
If we launched it in version 2, we have the error when trying to modify a Set by adding an unspecified element in the structure.
How 1.1.7 and 1.1.7_Bridge versions should not warn of this type of behavior?
Change History (1)
comment:1 Changed 15 years ago by
Description: | modified (diff) |
---|---|
Status: | new → accepted |
I think the wrong behaviour is in v.2.0.1 due you are not modifying
Set Ser_
. With new OOP features, internal structures and classes are more protected to ensure coherence but in this case you are creating a new object, not modifying it.You can observe how the set is not modifyied running
I'm almost sure the problem is a C++ internal copy of a Set that is inheriting the structure inside the operator <<