Passing a GridView to a (Pre)Basis
Is there a specific reason why the constructors for (Pre)Bases take const GridView&
?
I ask because I assume that a copy of the GridView is always maintained internally, but the construction interface does not represent this and has me preserve lifetime of the passed GridView.
If there is no strict counter argument, I suggest changing the construction interface to taking a GridView gridview
instead which can then be moved to the member variable.