From 6fddc80c956401dc47fcdced80fd31e6c46a4af2 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 6 Jun 2016 20:50:10 +0200 Subject: [PATCH] source_spellcheck: fixed lambda support for signals on older platforms --- src/source_spellcheck.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/source_spellcheck.cc b/src/source_spellcheck.cc index f27c38c..26a20fd 100644 --- a/src/source_spellcheck.cc +++ b/src/source_spellcheck.cc @@ -2,6 +2,20 @@ #include "config.h" #include +namespace sigc { +#ifndef SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE + template + struct functor_trait { + typedef decltype (::sigc::mem_fun(std::declval(), + &Functor::operator())) _intermediate; + typedef typename _intermediate::result_type result_type; + typedef Functor functor_type; + }; +#else + SIGC_FUNCTORS_DEDUCE_RESULT_TYPE_WITH_DECLTYPE +#endif +} + AspellConfig* Source::SpellCheckView::spellcheck_config=NULL; Source::SpellCheckView::SpellCheckView() : Gsv::View() {