-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: static assertion failed: result type must be constructible from input type when building with -DQT6=ON
#11167
Comments
I think the problem in particular is that the |
I think we hit a bug introduced in Qt 6.4.0: It fails here: Even though the code of question is not used, it is compiled and fails: becomes See also: I will report a QT bug. |
Thanks for your further research and filing the Qt bug, seems like they're taking it seriously. Conversely, I'm wondering why |
This is a workaround. I also had a look into the idea to hold a copy by value but that is difficult because we don't know the effect setup at compile time. |
Can you elaborate? |
The effect specific state is created dynamically according to the registered channels. That's why I think we need a container class. |
Ah I see, good point... making the entire thing a |
An instance of the problem described here: https://quuxplusone.github.io/blog/2020/02/05/vector-is-copyable-except-when-its-not/ I'll see what I can do. As a work-around,wrap the vector:
QVarLengthArray<moveonly_vector<std::unique_ptr<~~~>>> fixed; |
Thank you for coming back to us. This is almost the same we have implemented in #11180 |
The upstream bug has been fixed here: |
Bug Description
I cannot build mixxx with
-DQT6=ON
due to this error:IIUC the issue is that it tries to make a copy of the
unique_ptr
when accessing theChannelHandleMap<std::vector<std::unique_ptr<EffectSpecificState>>>
:auto& outputChannelStates = m_channelStateMatrix[inputChannel];
Version
Latest main (86a280b)
OS
Arch Linux with gcc 12.2.0-1 on AMD64
The text was updated successfully, but these errors were encountered: