Make all Base-class constructors protected
@chhtz
Submitted by Christoph HertzbergAssigned to Nobody
Link to original bugzilla bug (#1587)
Version: 3.3 (current stable)
Description
Problems like the following could be avoided by making the copy constructors of all base-classes protected:
https://stackoverflow.com/questions/51958972/eigen-densebase-segmentation-fault
Actually, the user should never be able to directly construct a Base class, so all constructors should be protected.
I don't think this will break any valid/working code, but would expose some easy to make errors. Am I missing any valid use case of having public constructors here?
Edited by Eigen Bugzilla