]> git.lyx.org Git - lyx.git/blob - src/support/any.h
Use `std::any` when compiler supports C++17 or later
[lyx.git] / src / support / any.h
1 // -*- C++ -*-
2 /**
3  * \file any.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Yuriy Skalko
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_ANY_H
13 #define LYX_ANY_H
14
15 #if __cplusplus >= 201703L
16         #include <any>
17         namespace lyx { using std::any; }
18 #else
19         #include <boost/any.hpp>
20         namespace lyx { using boost::any; }
21 #endif
22
23 #endif // LYX_ANY_H