Getting a segmentation fault when initializing a pointer of a base class with a pointer of a derived class
When I initialize a pointer by direct passing the object (&circle) it works. When creating a pointer (circle_ref(&circle)) and passing circle_ref to the constructor I get a segmentation fault.