]> git.lyx.org Git - features.git/blobdiff - src/support/any.h
Remove redundant declarations reported by GCC with -Wredundant-decls option
[features.git] / src / support / any.h
index e8f6a111fb2a165c310c2223949540ea894e4369..f246470353f1937b5fb875cbc50dd90dc6d53769 100644 (file)
 #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