Opened 14 years ago

Closed 14 years ago

#204 closed defect (fixed)

Potentially dangerous usage of references to external objects in !ContinuousGeneral

Reported by: Jari Häkkinen Owned by: Peter
Priority: major Milestone: yat 0.3 (Public release)
Component: random Version: trunk
Keywords: Cc:

Description (last modified by Jari Häkkinen)

At approximately line 460 in source:trunk/yat/random/random.h there is a reference to an external object. This requirement is not documented:

const statistics::Histogram& hist_;

The above implementation should probably be changed, or at least proper documentation should be added.

Change History (2)

comment:1 Changed 14 years ago by Jari Häkkinen

Description: modified (diff)
Summary: Potentially dangeruous usage of references to external objects in !ContinuousGeneralPotentially dangerous usage of references to external objects in !ContinuousGeneral

comment:2 Changed 14 years ago by Peter

Resolution: fixed
Status: newclosed

(In [818]) It depends on the use case here, but I think I agree so hist_ is no longer a reference. Fixes #204

Note: See TracTickets for help on using tickets.