https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123783

--- Comment #5 from Volker Hilsheimer <volker.hilsheimer at qt dot io> ---
To clarify why we need this in Qt: in order to be able to replace Qt's moc with
C++26 reflection, we need to be able to construct an array of void pointers
from a list of function arguments.

In the reproducer, assume `func` is a Qt signal that today moc has to
implement, while with C++ 26 the developer would write something like
`Q_SIGNAL_IMPL(int func(int counter, float factor))`.

The `Q_SIGNAL_IMPL` macro would expand to the code in the reproducer, and we
can't hardcode or somehow extract parameter variable names in that macro to
inject those into the capture expression.

Reply via email to