aports/testing/asymptote/fix-nullopt-not-declared.patch
2023-08-20 13:31:07 +00:00

15 lines
244 B
Diff

--- a/common.h
+++ b/common.h
@@ -38,6 +38,11 @@
using nonstd::optional;
using nonstd::nullopt;
using nonstd::make_optional;
+#else
+#include <optional>
+using std::optional;
+using std::nullopt;
+using std::make_optional;
#endif
#endif