Use std::shuffle instead of (deprecated) std::random_shuffle if C++14 detected

This commit is contained in:
Phil Nash
2016-06-09 08:15:57 +01:00
parent a74d760d74
commit be3570ef22
2 changed files with 34 additions and 11 deletions

View File

@@ -36,8 +36,16 @@
// All the C++11 features can be disabled with CATCH_CONFIG_NO_CPP11
#if defined(__cplusplus) && __cplusplus >= 201103L
# define CATCH_CPP11_OR_GREATER
#ifdef __cplusplus
# if __cplusplus >= 201103L
# define CATCH_CPP11_OR_GREATER
# endif
# if __cplusplus >= 201402L
# define CATCH_CPP14_OR_GREATER
# endif
#endif
#ifdef __clang__