-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
Description
Check all get
return values not references that the user can modify without fear.
As one example:
MOI.get(b::GeoMeanBridge, ::MOI.ListOfVariableIndices) = b.xij |
If the user were to modify the returned value, this would modify the vector inside the bridge.
The fix would be
MOI.get(b::GeoMeanBridge, ::MOI.ListOfVariableIndices) = copy(b.xij)