|
1 | 1 | /* |
2 | | - * Catch v1.12.0 |
3 | | - * Generated: 2018-01-11 21:56:34.893972 |
| 2 | + * Catch v1.12.1 |
| 3 | + * Generated: 2018-03-02 21:17:41.036711 |
4 | 4 | * ---------------------------------------------------------- |
5 | 5 | * This file has been merged from multiple headers. Please don't edit it directly |
6 | 6 | * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. |
@@ -7292,9 +7292,9 @@ namespace Catch { |
7292 | 7292 | result_type operator()( result_type n ) const { return std::rand() % n; } |
7293 | 7293 |
|
7294 | 7294 | #ifdef CATCH_CONFIG_CPP11_SHUFFLE |
7295 | | - static constexpr result_type min() { return 0; } |
7296 | | - static constexpr result_type max() { return 1000000; } |
7297 | | - result_type operator()() const { return std::rand() % max(); } |
| 7295 | + static constexpr result_type (min)() { return 0; } |
| 7296 | + static constexpr result_type (max)() { return 1000000; } |
| 7297 | + result_type operator()() const { return std::rand() % (max)(); } |
7298 | 7298 | #endif |
7299 | 7299 | template<typename V> |
7300 | 7300 | static void shuffle( V& vector ) { |
@@ -8466,7 +8466,7 @@ namespace Catch { |
8466 | 8466 | } |
8467 | 8467 |
|
8468 | 8468 | inline Version libraryVersion() { |
8469 | | - static Version version( 1, 12, 0, "", 0 ); |
| 8469 | + static Version version( 1, 12, 1, "", 0 ); |
8470 | 8470 | return version; |
8471 | 8471 | } |
8472 | 8472 |
|
@@ -8501,11 +8501,18 @@ namespace Catch { |
8501 | 8501 | : m_info( other.m_info ) |
8502 | 8502 | {} |
8503 | 8503 |
|
| 8504 | +#if defined(_MSC_VER) |
| 8505 | +#pragma warning(push) |
| 8506 | +#pragma warning(disable:4996) // std::uncaught_exception is deprecated in C++17 |
| 8507 | +#endif |
8504 | 8508 | ScopedMessage::~ScopedMessage() { |
8505 | 8509 | if ( !std::uncaught_exception() ){ |
8506 | 8510 | getResultCapture().popScopedMessage(m_info); |
8507 | 8511 | } |
8508 | 8512 | } |
| 8513 | +#if defined(_MSC_VER) |
| 8514 | +#pragma warning(pop) |
| 8515 | +#endif |
8509 | 8516 |
|
8510 | 8517 | } // end namespace Catch |
8511 | 8518 |
|
|
0 commit comments