Skip to content

Commit 6da23ec

Browse files
Artemiy-dQt Cherry-pick Bot
authored andcommitted
Use full name to invoke applyIndexSwitch
Let's call QtPrivate::applyIndexSwitch to get around ADL issues. Change-Id: I354d664a5501797f18d1af52c29ed2a8b1917adf Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 69846b3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
1 parent 7501548 commit 6da23ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/corelib/tools/qquasivirtual_impl.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ void applyIndexSwitch(size_t index, Applier&& applier, std::index_sequence<Is...
4040
template <size_t IndexCount, typename Applier>
4141
void applyIndexSwitch(size_t index, Applier&& applier)
4242
{
43-
applyIndexSwitch(index, std::forward<Applier>(applier), std::make_index_sequence<IndexCount>());
43+
QtPrivate::applyIndexSwitch(index, std::forward<Applier>(applier),
44+
std::make_index_sequence<IndexCount>());
4445
}
4546

4647
template <typename Interface>
@@ -178,7 +179,8 @@ class QQuasiVirtualSubclass : public Interface
178179
auto doInvoke = [&](auto idxConstant) {
179180
std::tuple_element_t<idxConstant.value, Methods<>>::doInvoke(subclass, ret, args);
180181
};
181-
applyIndexSwitch(index, doInvoke, std::index_sequence<interfaceMethodIndex<Is>()...>{});
182+
QtPrivate::applyIndexSwitch(index, doInvoke,
183+
std::index_sequence<interfaceMethodIndex<Is>()...>{});
182184
}
183185

184186
static void callImpl(size_t index, typename Interface::base_interface &intf, void *ret, void *args)

0 commit comments

Comments
 (0)