Re: [hugin-ptx] Re: Common base class for CPImageCtrl and MaskImageCtrl

2022-03-07 Thread johnfi...@gmail.com
On Monday, March 7, 2022 at 1:13:45 PM UTC-5 gunter.ko...@gmail.com wrote: > If two classes have nothing in common from the implementation side > deriving them from the same base class still might have a big advantage: > You can make a pointer to an object of that base class and access all

Re: [hugin-ptx] Re: Common base class for CPImageCtrl and MaskImageCtrl

2022-03-07 Thread Gunter Königsmann
If two classes have nothing in common from the implementation side deriving them from the same base class still might have a big advantage: You can make a pointer to an object of that base class and access all the common members without casting them and without writing code that is specific for

Re: [hugin-ptx] Re: Common base class for CPImageCtrl and MaskImageCtrl

2022-03-02 Thread John Fine
On Wed, Mar 2, 2022 at 12:52 PM T. Modes wrote: > From an implementation point both classes are very different. They have > only some minor and trivial functions in common - the main part is > completely different implemented. > So it brings only little benefit and on the other side a high risk

[hugin-ptx] Re: Common base class for CPImageCtrl and MaskImageCtrl

2022-03-02 Thread T. Modes
johnfi...@gmail.com schrieb am Dienstag, 1. März 2022 um 18:46:40 UTC+1: > Thomas, is there any way that I could code/commit creation of a common > base class for CPImageCtrl and MaskImageCtrl that you would consider > acceptable to be merged to the default branch? > >From an implementation