Right --- the var_context itself isn't stored --- it's just
used to read data into the model instance. Similarly, the
var_context for dump takes an input stream, but doesn't store
the input stream --- it just reads from it during construction.
The var_context base class reference could be replaced with
something else, but something needs to get the data into the model.
I marked all the data const, so if you want to try to remove
the safe construction pattern that's there now, you have to
unmark everything as const.
I'm just guessing at what you want to do.
- Bob
> --
> You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-dev+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.