[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: UDSEntry compression ideas
From:       Frank Reininghaus <frank78ac () googlemail ! com>
Date:       2013-09-26 20:52:59
Message-ID: CAFoZWWhvCYiCCO+o7cnq61im-O5JD0NQd_DvcAy9dhwG6Z=pTw () mail ! gmail ! com
[Download RAW message or body]

Hi,

2013/9/21 David Faure:
>> 3. Right now the Field struct stores a QString and a long long. Certainly
>> there must be a way to just use one type. I guess QVariant has too much
>> overhead to be used, but something like that.
>
> That would be "union" instead of "struct", very simply. I'm not sure why we're
> not using that, actually.

Because it's impossible ;-)

You cannot add types with non-trivial constructors or destructors to a
union. The compiler wouldn't know what to do if such a union went into
or out of scope.

Regards,
Frank
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic