2010-10-20 23:50:49 +00:00
|
|
|
// -*- 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
|
|
|
|
|
2015-05-19 13:10:38 +00:00
|
|
|
#ifdef LYX_USE_CXX11
|
2014-12-21 19:19:12 +00:00
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#define LYX_FUNCTIONAL_NS std
|
2010-10-20 23:50:49 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <boost/function.hpp>
|
|
|
|
#include <boost/functional.hpp>
|
2014-12-21 19:19:12 +00:00
|
|
|
#define LYX_FUNCTIONAL_NS boost
|
|
|
|
|
|
|
|
#endif
|
2010-10-20 23:50:49 +00:00
|
|
|
|
|
|
|
namespace lyx
|
|
|
|
{
|
2014-12-21 19:19:12 +00:00
|
|
|
using LYX_FUNCTIONAL_NS::function;
|
2010-10-20 23:50:49 +00:00
|
|
|
}
|
|
|
|
|
2014-12-21 19:19:12 +00:00
|
|
|
#undef LYX_FUNCTIONAL_NS
|
2010-10-20 23:50:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|