The branch, cleanup/updateMacros3, has been updated.

- Log -----------------------------------------------------------------

commit f2bcbfa733dfce9d2e4a691ff8f9df98bdb83caf
Author: Yuriy Skalko <[email protected]>
Date:   Fri Nov 13 00:48:11 2020 +0200

    Support `optional` type

diff --git a/src/support/Makefile.am b/src/support/Makefile.am
index 785b97f..0933b02 100644
--- a/src/support/Makefile.am
+++ b/src/support/Makefile.am
@@ -87,6 +87,7 @@ liblyxsupport_a_SOURCES = \
        Messages.cpp \
        Messages.h \
        numpunct_lyx_char_type.h \
+       optional.h \
        os.cpp \
        os.h \
        PathChanger.cpp \
diff --git a/src/support/optional.h b/src/support/optional.h
new file mode 100644
index 0000000..4d860a7
--- /dev/null
+++ b/src/support/optional.h
@@ -0,0 +1,23 @@
+// -*- C++ -*-
+/**
+ * \file optional.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Yuriy Skalko
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#ifndef LYX_OPTIONAL_H
+#define LYX_OPTIONAL_H
+
+#if __cplusplus >= 201703L
+       #include <optional>
+       namespace lyx { using std::optional; }
+#else
+       #include <boost/optional.hpp>
+       namespace lyx { using boost::optional; }
+#endif
+
+#endif // LYX_OPTIONAL_H

-----------------------------------------------------------------------

Summary of changes:
 src/support/Makefile.am |    1 +
 src/support/optional.h  |   23 +++++++++++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 src/support/optional.h


hooks/post-receive
-- 
Repository for new features
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to