Skip to content
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: no matching function for call to 'Engine::Hook::HookError::HookError(<brace-enclosed initializer list>)' on Windows Toolchain #49

Open
thebigG opened this issue Aug 16, 2022 · 0 comments

Comments

@thebigG
Copy link
Owner

thebigG commented Aug 16, 2022

Should be an easy fix.

[ 50%] Building CXX object Tasker/CMakeFiles/Tasker.dir/Ui/MainUi.cpp.obj
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp: In member function 'virtual Engine::Hook::HookError Engine::AudioHook::configure()':
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:295:38: error: no matching function for call to 'Engine::Hook::HookError::HookError(<brace-enclosed initializer list>)'
     return HookError{ "Placeholder", Hook::HookError::HookErrorStatus::ERROR };
                                      ^
In file included from /__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.h:4:0,
                 from /__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:1:
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:22:9: note: candidate: Engine::Hook::HookError::HookError(std::__cxx11::string, Engine::Hook::HookError::HookErrorStatus)
         HookError(std::string msg, HookErrorStatus newStatus) {
         ^
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:22:9: note:   conversion of argument 2 would be ill-formed:
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:19:11: note: candidate: Engine::Hook::HookError::HookError(const Engine::Hook::HookError&)
     class HookError {
           ^
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:19:11: note:   candidate expects 1 argument, 2 provided
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:19:11: note: candidate: Engine::Hook::HookError::HookError(Engine::Hook::HookError&&)
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:19:11: note:   candidate expects 1 argument, 2 provided
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:295:21: error: expected primary-expression before '{' token
     return HookError{ "Placeholder", Hook::HookError::HookErrorStatus::ERROR };
                     ^
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:295:21: error: expected ';' before '{' token
In file included from /mxe/usr/i686-w64-mingw32.static/include/windows.h:71:0,
                 from /__w/Tasker/Tasker/Tasker/../miniaudio/miniaudio.h:6557,
                 from /__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:4:
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:295:72: error: expected unqualified-id before numeric constant
     return HookError{ "Placeholder", Hook::HookError::HookErrorStatus::ERROR };
                                                                        ^
make[2]: *** [Tasker/CMakeFiles/Tasker.dir/Engine/Hooks/Audio/AudioHook.cpp.obj] Error 1
Tasker/CMakeFiles/Tasker.dir/build.make:129: recipe for target 'Tasker/CMakeFiles/Tasker.dir/Engine/Hooks/Audio/AudioHook.cpp.obj' failed
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Tasker/CMakeFiles/Tasker.dir/all] Error 2
CMakeFiles/Makefile2:120: recipe for target 'Tasker/CMakeFiles/Tasker.dir/all' failed
make: *** [all] Error 2
Makefile:135: recipe for target 'all' failed
Error: Process completed with exit code 2.
0s

thebigG added a commit that referenced this issue Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant