Requiring C+11 & purging boost includes makes bind.h useless.

This commit is contained in:
Pavel Sanda 2024-10-23 20:07:16 +02:00
parent 88e092ae02
commit 26d27eda58
6 changed files with 8 additions and 33 deletions

View File

@ -122,8 +122,6 @@
#define EXPORT_in_THREAD 1
#include "support/bind.h"
#include <sstream>
#ifdef HAVE_SYS_TIME_H
@ -142,6 +140,8 @@ namespace lyx {
using support::addExtension;
using support::changeExtension;
using support::removeExtension;
using std::bind;
using std::placeholders::_1;
namespace frontend {

View File

@ -16,11 +16,11 @@
#include <QObject>
#include <QWaitCondition>
#include "support/bind.h"
namespace lyx {
using std::function;
using std::ref;
using std::bind;
namespace frontend {

View File

@ -28,8 +28,6 @@
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/bind.h"
using namespace std;
namespace lyx {

View File

@ -21,8 +21,6 @@
#include "support/os.h"
#include "support/Timeout.h"
#include "support/bind.h"
#include <cerrno>
#include <cstring>
#include <list>
@ -50,6 +48,10 @@ using namespace std;
namespace lyx {
using std::placeholders::_1;
using std::bind;
namespace support {
namespace {

View File

@ -35,7 +35,6 @@ liblyxsupport_a_SOURCES = \
FileMonitor.h \
FileMonitor.cpp \
RandomAccessList.h \
bind.h \
Cache.h \
Changer.h \
checksum.cpp \

View File

@ -1,24 +0,0 @@
// -*- 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
namespace lyx
{
using std::placeholders::_1;
using std::placeholders::_2;
using std::bind;
using std::ref;
} // namespace
#endif