Skip to content

Commit

Permalink
Update expected.hpp (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigerl committed May 21, 2022
1 parent 6284387 commit b78dd92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/nonstd/expected.hpp
Expand Up @@ -101,10 +101,11 @@
#define nsel_CPP14_OR_GREATER ( nsel_CPLUSPLUS >= 201402L )
#define nsel_CPP17_OR_GREATER ( nsel_CPLUSPLUS >= 201703L )
#define nsel_CPP20_OR_GREATER ( nsel_CPLUSPLUS >= 202000L )
#define nsel_CPP23_OR_GREATER ( nsel_CPLUSPLUS >= 202300L )

// Use C++20 std::expected if available and requested:
// Use C++23 std::expected if available and requested:

#if nsel_CPP20_OR_GREATER && defined(__has_include )
#if nsel_CPP23_OR_GREATER && defined(__has_include )
# if __has_include( <expected> )
# define nsel_HAVE_STD_EXPECTED 1
# else
Expand Down

0 comments on commit b78dd92

Please sign in to comment.