mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 21:23:54 +00:00
Avoid CTAD to fix macOS build
../../../apps/openmw/engine.cpp:706:23: error: no viable constructor or deduction guide for deduction of template arguments of 'function' ? std::function(ScheduleNonDialogMessageBox {}) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1430:48: note: candidate template ignored: could not match 'function<_Fp>' against '(anonymous namespace)::ScheduleNonDialogMessageBox' template<class _Fp> class _LIBCPP_TEMPLATE_VIS function; // undefined ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1430:48: note: candidate function template not viable: requires 0 arguments, but 1 was provided ../../../apps/openmw/engine.cpp:707:23: error: no viable constructor or deduction guide for deduction of template arguments of 'function' : std::function(IgnoreString {}) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1430:48: note: candidate template ignored: could not match 'function<_Fp>' against '(anonymous namespace)::IgnoreString' template<class _Fp> class _LIBCPP_TEMPLATE_VIS function; // undefined ^
This commit is contained in:
parent
e1c525914c
commit
73639a93b6
1 changed files with 2 additions and 2 deletions
|
@ -703,8 +703,8 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
|
|||
mCfgMgr.getScreenshotPath().string(),
|
||||
Settings::Manager::getString("screenshot format", "General"),
|
||||
Settings::Manager::getBool("notify on saved screenshot", "General")
|
||||
? std::function(ScheduleNonDialogMessageBox {})
|
||||
: std::function(IgnoreString {})
|
||||
? std::function<void (std::string)>(ScheduleNonDialogMessageBox {})
|
||||
: std::function<void (std::string)>(IgnoreString {})
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue