commit d53b44273ce139dd0140dc215cc1e26d75453f60
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Sat Nov 21 19:42:23 2020 +0100
Compilation fix
---
src/Lexer.cpp | 1 +
src/support/any.h | 22 +++++++++++++++++-----
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/Lexer.cpp b/src/Lexer.cpp
index 08fb469..17cc161 100644
--- a/src/Lexer.cpp
+++ b/src/Lexer.cpp
@@ -25,6 +25,7 @@
#include "support/lstrings.h"
#include "support/lyxalgo.h"
+#include <algorithm> // sort, lower_bound
#include <functional>
#include <fstream>
#include <istream>
diff --git a/src/support/any.h b/src/support/any.h
index e8f6a11..f246470 100644
--- a/src/support/any.h
+++ b/src/support/any.h
@@ -13,11 +13,23 @@
#define LYX_ANY_H
#if __cplusplus >= 201703L
- #include <any>
- namespace lyx { using std::any; }
+
+#include <any>
+
+namespace lyx {
+using std::any;
+using std::any_cast;
+}
+
#else
- #include <boost/any.hpp>
- namespace lyx { using boost::any; }
-#endif
+
+#include <boost/any.hpp>
+
+namespace lyx {
+using boost::any;
+using boost::any_cast;
+}
+
+#endif // __cplusplus >= 201703L
#endif // LYX_ANY_H
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs