Skip to content

Commit

Permalink
Cpp17vercheck (#22)
Browse files Browse the repository at this point in the history
C++17 version checks
  • Loading branch information
FrancoisChabot authored Sep 4, 2018
1 parent cb4c76e commit 5961b7a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/vecpp/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@

#include <cassert>

#ifdef _MSVC_LANG
#if _MSVC_LANG < 201703L
#error C++17 support is required
#endif
#elif __cplusplus < 201703L
#error C++17 support is required
#endif

#define VECPP_VERSION_MAJOR 0
#define VECPP_VERSION_MINOR 0
#define VECPP_VERSION_PATCH 1
Expand Down

0 comments on commit 5961b7a

Please sign in to comment.