summaryrefslogtreecommitdiffstats
path: root/src/gui/CMakeLists.txt
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2023-02-08 12:10:29 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2023-02-08 20:07:41 +0100
commiteb585d63ca4cc10800f41c9658f43f85fa932f83 (patch)
tree73ce60dee180339f6f7e2bffe3854555fbd75e7a /src/gui/CMakeLists.txt
parenta1867208a654509c85a54914d1fe6178675c7fdc (diff)
Move qHash function for a Windows type into global namespace
Otherwise leads to QHash being unable to find it upon usage: qtbase/src/corelib/tools/qhash.h(64): error C2338: static_assert failed: 'The key type must have a qHash overload or a std::hash specialization' qtbase/src/corelib/tools/qhash.h(665): note: see reference to function template instantiation 'size_t qt::QHashPrivate::calculateHash<D3D12_SAMPLER_DESC>(const T &,size_t)' being compiled Since we rely on ADL for qHash the qHash overload should live in the same scope as the original type. Change-Id: I701447c49076980a1aed47d64ba8ac3358cf8b1c Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/gui/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions