2010-04-22 11:16:58 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file bind.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_BIND_H
|
|
|
|
#define LYX_BIND_H
|
|
|
|
|
2010-10-23 10:49:45 +00:00
|
|
|
#include "support/functional.h"
|
2010-04-22 15:56:20 +00:00
|
|
|
|
2010-10-23 10:49:45 +00:00
|
|
|
#ifdef LYX_USE_TR1
|
2010-06-05 11:06:13 +00:00
|
|
|
|
2014-12-21 19:19:12 +00:00
|
|
|
#define LYX_BIND_NS std::tr1
|
|
|
|
|
2010-04-22 15:56:20 +00:00
|
|
|
namespace lyx
|
|
|
|
{
|
|
|
|
using std::tr1::placeholders::_1;
|
|
|
|
using std::tr1::placeholders::_2;
|
2014-12-21 19:19:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#elif __cplusplus >= 201103L
|
|
|
|
|
|
|
|
#define LYX_BIND_NS std
|
|
|
|
|
|
|
|
namespace lyx
|
|
|
|
{
|
|
|
|
using std::placeholders::_1;
|
|
|
|
using std::placeholders::_2;
|
2010-04-22 15:56:20 +00:00
|
|
|
}
|
2010-04-22 11:16:58 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2010-06-30 11:04:30 +00:00
|
|
|
#include <boost/bind.hpp>
|
2014-12-21 19:19:12 +00:00
|
|
|
#define LYX_BIND_NS boost
|
|
|
|
|
|
|
|
#endif
|
2010-04-22 15:56:20 +00:00
|
|
|
|
|
|
|
namespace lyx
|
|
|
|
{
|
2014-12-21 19:19:12 +00:00
|
|
|
using LYX_BIND_NS::bind;
|
|
|
|
using LYX_BIND_NS::ref;
|
2010-04-22 15:56:20 +00:00
|
|
|
}
|
2010-04-22 11:16:58 +00:00
|
|
|
|
2014-12-21 19:19:12 +00:00
|
|
|
#undef LYX_BIND_NS
|
2010-04-22 11:16:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|