mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +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.
37 lines
576 B
C++
37 lines
576 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
|
|
|
|
#if __cplusplus >= 201103L
|
|
|
|
#include <functional>
|
|
#define LYX_FUNCTIONAL_NS std
|
|
|
|
#else
|
|
|
|
#include <boost/function.hpp>
|
|
#include <boost/functional.hpp>
|
|
#define LYX_FUNCTIONAL_NS boost
|
|
|
|
#endif
|
|
|
|
namespace lyx
|
|
{
|
|
using LYX_FUNCTIONAL_NS::function;
|
|
}
|
|
|
|
#undef LYX_FUNCTIONAL_NS
|
|
|
|
|
|
#endif
|