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() {