lyx_mirror/src/support/functional.h
Peter Kümmel c259957b69 add generic helper class for calling functions in gui thread
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35735 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:50:49 +00:00

42 lines
564 B
C++

// -*- C++ -*-
/**
* \file functional.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Peter Kümmel
*
* Full author contact details are available in file CREDITS.
*/
#ifndef LYX_FUNCTIONAL_H
#define LYX_FUNCTIONAL_H
#ifdef LYX_USE_TR1
#include <functional>
#ifdef __GNUC__
#include <tr1/functional>
#endif
namespace lyx
{
using std::tr1::function;
}
#else
#include <boost/function.hpp>
#include <boost/functional.hpp>
namespace lyx
{
using boost::function;
}
#endif
#endif