In Solution.cpp there are real * and return_ptr which both are pointers to a field. Investigate if return_ptr is just double code or if there is some advantage. And if return_ptr and real * will both remain, think about a better naming to the difference between both or at least to make the difference clear when someone has to change its getter.
In
Solution.cppthere arereal *andreturn_ptrwhich both are pointers to a field. Investigate ifreturn_ptris just double code or if there is some advantage. And ifreturn_ptrandreal *will both remain, think about a better naming to the difference between both or at least to make the difference clear when someone has to change its getter.