You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
427 B
15 lines
427 B
|
5 years ago
|
#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
|