3 changed files with 18 additions and 1 deletions
@ -0,0 +1,14 @@
|
||||
#pragma once |
||||
|
||||
#ifdef __has_include |
||||
#if defined(__cplusplus) && __cplusplus >= 201606L && __has_include(<optional>) |
||||
#include <optional> // IWYU pragma: export |
||||
#elif __has_include(<experimental/optional>) |
||||
#include <experimental/optional> // IWYU pragma: export |
||||
#define optional experimental::optional |
||||
#else |
||||
#error "Missing support for <optional> or <experimental/optional>" |
||||
#endif |
||||
#else |
||||
#error "__has_include unavailable" |
||||
#endif |
||||
Loading…
Reference in new issue