hof icon indicating copy to clipboard operation
hof copied to clipboard

Only inherit when the class is empty

Open pfultz2 opened this issue 9 years ago • 1 comments

The main reason for inheritance is to take advantage of EBO. So it might be best to only inherit when classes are empty. This is related to issue #129, and may supersede it.

pfultz2 avatar Mar 15 '16 20:03 pfultz2

The nice thing about inheritance is easy access to the base class. I think it would be better to keep inheritance and the user can use final or fit::protect to avoid possible problems that come from inheritance, but I am not sure which would be the better approach.

pfultz2 avatar Mar 21 '16 20:03 pfultz2