[haiku-development] Re: Add SetInsets() overloads to BGridLayoutBuilder and BGroupLayoutBuilder

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Tue, 4 Jun 2013 18:49:43 -0400

On Tue, Jun 4, 2013 at 5:49 PM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:
> On 06/04/2013 11:38 PM, John Scipione wrote:
>>
>> Assuming that the template versions are forwards compatible with the
>> regular versions would it be possible to use template meta-programming
>> to generate the BGroupLayoutBuilder and BGridLayoutBuilder classes
>> from the BLayoutBuilder template? That way we could use either version
>> and they'd stay in sync. Just an idea rather than having to go through
>> and rewrite all the code that uses the non-template versions.
>
> What would be the point of that?

So that we could continue to use both versions but without repeating the code...

> In any case, they aren't forward compatible, just very similar in many
> cases.

Oh well, I guess that idea won't work then.

Other related posts: