Compilation fix

This commit is contained in:
Jean-Marc Lasgouttes 2020-11-21 19:42:23 +01:00
parent ba8ca0e384
commit d53b44273c
2 changed files with 18 additions and 5 deletions

View File

@ -25,6 +25,7 @@
#include "support/lstrings.h"
#include "support/lyxalgo.h"
#include <algorithm> // sort, lower_bound
#include <functional>
#include <fstream>
#include <istream>

View File

@ -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