Kaydet (Commit) d34c0852 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix GenericSolarThreadExecutor<...,void> specialization

Change-Id: I4468a3a8d036ca4894ba7977f6654244552464aa
Reviewed-on: https://gerrit.libreoffice.org/68423
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst e3c8943e
......@@ -92,6 +92,16 @@ private:
template <typename FuncT>
class GenericSolarThreadExecutor<FuncT, void> : public SolarThreadExecutor
{
public:
static void exec( FuncT const& func )
{
typedef GenericSolarThreadExecutor<FuncT, void> ExecutorT;
::std::unique_ptr<ExecutorT> const pExecutor( new ExecutorT(func) );
pExecutor->execute();
if (pExecutor->m_exc)
std::rethrow_exception(pExecutor->m_exc);
}
private:
explicit GenericSolarThreadExecutor( FuncT const& func )
: m_func(func) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment