Skip to content

Commit

Permalink
Change value used with *_CPP20_OR_GREATER to 202002L (nonstd-lite-pro…
Browse files Browse the repository at this point in the history
…ject issue 60)

Now, designate C++23 as speculative.
  • Loading branch information
martinmoene committed Aug 5, 2022
1 parent f08656d commit bedcb37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions include/lest/lest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
# define lest_RESTORE_WARNINGS /*empty*/
#endif

// C++ language version detection (C++20 is speculative):
// C++ language version detection (C++23 is speculative):
// Note: VC14.0/1900 (VS2015) lacks too much from C++14.

#ifndef lest_CPLUSPLUS
Expand All @@ -128,7 +128,8 @@
#define lest_CPP11_OR_GREATER ( lest_CPLUSPLUS >= 201103L )
#define lest_CPP14_OR_GREATER ( lest_CPLUSPLUS >= 201402L )
#define lest_CPP17_OR_GREATER ( lest_CPLUSPLUS >= 201703L )
#define lest_CPP20_OR_GREATER ( lest_CPLUSPLUS >= 202000L )
#define lest_CPP20_OR_GREATER ( lest_CPLUSPLUS >= 202002L )
#define lest_CPP23_OR_GREATER ( lest_CPLUSPLUS >= 202300L )

#if ! defined( lest_NO_SHORT_MACRO_NAMES ) && ! defined( lest_NO_SHORT_ASSERTION_NAMES )
# define MODULE lest_MODULE
Expand Down
5 changes: 3 additions & 2 deletions include/lest/lest_cpp03.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
# define lest_COMPILER_GNUC_VERSION 0
#endif

// C++ language version detection (C++20 is speculative):
// C++ language version detection (C++23 is speculative):
// Note: VC14.0/1900 (VS2015) lacks too much from C++14.

#ifndef lest_CPLUSPLUS
Expand All @@ -148,7 +148,8 @@
#define lest_CPP11_OR_GREATER ( lest_CPLUSPLUS >= 201103L || lest_COMPILER_MSVC_VERSION >= 120 )
#define lest_CPP14_OR_GREATER ( lest_CPLUSPLUS >= 201402L )
#define lest_CPP17_OR_GREATER ( lest_CPLUSPLUS >= 201703L )
#define lest_CPP20_OR_GREATER ( lest_CPLUSPLUS >= 202000L )
#define lest_CPP20_OR_GREATER ( lest_CPLUSPLUS >= 202002L )
#define lest_CPP23_OR_GREATER ( lest_CPLUSPLUS >= 202300L )

#define lest_CPP11_100 (lest_CPP11_OR_GREATER || lest_COMPILER_MSVC_VERSION >= 100)

Expand Down

0 comments on commit bedcb37

Please sign in to comment.