mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-20 20:51:40 +00:00
6f34a8a640
As discussed on the list. We don't need it anymore, either we have a modern compiler that supports C++11, or we fall back to boost. I kept and adjusted the regex #define, since we cannot use std regex completely yet.
44 lines
609 B
C++
44 lines
609 B
C++
// -*- 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
|
|
|
|
#include "support/functional.h"
|
|
|
|
#if __cplusplus >= 201103L
|
|
|
|
#define LYX_BIND_NS std
|
|
|
|
namespace lyx
|
|
{
|
|
using std::placeholders::_1;
|
|
using std::placeholders::_2;
|
|
}
|
|
|
|
#else
|
|
|
|
#include <boost/bind.hpp>
|
|
#define LYX_BIND_NS boost
|
|
|
|
#endif
|
|
|
|
namespace lyx
|
|
{
|
|
using LYX_BIND_NS::bind;
|
|
using LYX_BIND_NS::ref;
|
|
}
|
|
|
|
#undef LYX_BIND_NS
|
|
|
|
|
|
#endif
|