Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c52f5d0d authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix logic in akoptional.h

parent c783af75
......@@ -28,11 +28,13 @@
#define __cpp_lib_optional 1
#endif
#endif
#if !defined(__cpp_lib_optional) && __has_include(<experimental/optional>)
#include <experimental/optional>
namespace std { using namespace experimental; }
#else
#error Compiler does not support std::optional or std::experimental::optional
#if !defined(__cpp_lib_optional)
#if __has_include(<experimental/optional>)
#include <experimental/optional>
namespace std { using namespace experimental; }
#else
#error Compiler does not support std::optional or std::experimental::optional
#endif
#endif
#else
#error Compiler does not support __has_include
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment