summaryrefslogtreecommitdiffstats
path: root/header.LGPL-NOGPL2
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2020-02-26 16:48:13 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2020-03-17 17:55:27 +0100
commit733ae8a04b4785961b85befc1c4ea6ecc7936a75 (patch)
tree8c244e8b4e2ad63c643584f64703912b6e456819 /header.LGPL-NOGPL2
parent749e37efc5dd9eaa693c4f86253c48c37737aa09 (diff)
Make it possible to use QTaggedPointer within classes
A common pattern in declarative is to use the unused bits in linked list next pointers for additional information storage. The "next" pointer is typically then a tagged pointer of the containing class, which is not fully defined yet. Therefore alignof() can't be used at tagged pointer instantiation time. This patch delays the calls to alignment, etc. until the corresponding functions are used, as in principle the tagged pointer is just a quintptr and no additional information should be needed until operating on it. Change-Id: I87a3578ee921d471e1b60ed5903b549ef0610b97 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'header.LGPL-NOGPL2')
0 files changed, 0 insertions, 0 deletions