Bug 127408

Summary: compiler failure: no viable constructor …
Product: LibreOffice Reporter: vvd
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: medium    
Version: 6.3.1.2 release   
Hardware: x86-64 (AMD64)   
OS: FreeBSD   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Remove std::function

Description vvd 2019-09-06 12:56:02 UTC
Created attachment 153987 [details]
Remove std::function

Part of build log:

[CXX] vcl/qt5/Qt5Object.cxx
/usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/vcl/qt5/Qt5Instance.cxx:416:25: error: no viable constructor or deduction guide for deduction of template arguments of 'function'
        RunInMainThread(std::function([&, this]() { pPicker = createPicker(context, eMode); }));
                        ^
/usr/include/c++/v1/functional:1427:48: note: candidate template ignored: could not match 'function<_Fp>' against '(lambda at /usr/ports/editors/libreoffice/work/libreoffice-6.3.0.4/vcl/qt5/Qt5Instance.cxx:416:39)'
template<class _Fp> class _LIBCPP_TEMPLATE_VIS function; // undefined

Full description is here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239988
Comment 1 Mike Kaganski 2019-09-12 08:27:11 UTC
Fixed in master - https://git.libreoffice.org/core/+/81fd3bb4d76a0e57a4e8464cb1c5813115ea28f3 by Noel Grandin.

Thank you very much for filing this! The report, and the work by Noel, allowed to build the plugin to catch things like this early.