Skip to content

Commit

Permalink
added more detail about context model ownership and stack models are …
Browse files Browse the repository at this point in the history
…bad.
  • Loading branch information
rwcarlsen committed Feb 7, 2014
1 parent dc5fb6d commit 7682c6c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ class TimeListener;
/// state should be accessed through a simulation context.
///
/// @warning the context takes ownership of and manages the lifetime/destruction
/// of all models constructed with it (including Cloned models).
///
/// @warning the context takes ownership of the solver and will manage its destruction.
/// of all models constructed with it (including Cloned models). Models should
/// generally NEVER be allocated on the stack.
/// @warning the context takes ownership of the solver and will manage its
/// destruction.
class Context {
public:
friend class Model;
Expand Down

0 comments on commit 7682c6c

Please sign in to comment.