diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-07-08 09:46:52 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-06-07 05:52:50 +0200 |
commit | de250491318103ca460f94bc140ee28c266cb93a (patch) | |
tree | e554ebc5f2cc7e3c61278d42065cf1589d1a3fab /examples/draganddrop/fridgemagnets | |
parent | 332a42958f766665050d8d75b794e227ef202df9 (diff) |
The implementation assumes this, so assert it.
I've tried the moral equivalent of is_pod first, but it turns out most
of the concrete value_types aren't trivial, so let's use our own trait
for now.
Put the static_assert into the dtor to give users a fighting chance to
Q_DECLARE_TYPEINFO before first instantiation (the dtor can usually be
declared out-of-line to delay instantiation of the assertion).
Change-Id: I6c03f7c554b9e07608dee639ab0abc2ddfe3c28a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'examples/draganddrop/fridgemagnets')
0 files changed, 0 insertions, 0 deletions