mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 14:09:33 +01:00 
			
		
		
		
	v1.12.1
This commit is contained in:
		@@ -3,9 +3,9 @@
 | 
			
		||||
[](https://github.com/philsquared/catch/releases)
 | 
			
		||||
[](https://travis-ci.org/philsquared/Catch)
 | 
			
		||||
[](https://ci.appveyor.com/project/philsquared/catch/branch/master)
 | 
			
		||||
[](https://wandbox.org/permlink/hgiYhcvH835lHvaA)
 | 
			
		||||
[](https://wandbox.org/permlink/q3wLegtaHunTHSls)
 | 
			
		||||
 | 
			
		||||
<a href="https://github.com/philsquared/Catch/releases/download/v1.12.0/catch.hpp">The latest, single header, version can be downloaded directly using this link</a>
 | 
			
		||||
<a href="https://github.com/philsquared/Catch/releases/download/v1.12.1/catch.hpp">The latest, single header, version can be downloaded directly using this link</a>
 | 
			
		||||
 | 
			
		||||
## What's the Catch?
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@ from conans import ConanFile
 | 
			
		||||
 | 
			
		||||
class CatchConan(ConanFile):
 | 
			
		||||
    name = "Catch"
 | 
			
		||||
    version = "1.12.0"
 | 
			
		||||
    version = "1.12.1"
 | 
			
		||||
    description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD"
 | 
			
		||||
    author = "philsquared"
 | 
			
		||||
    generators = "cmake"
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,12 @@
 | 
			
		||||
# 1.12.1
 | 
			
		||||
 | 
			
		||||
### Fixes
 | 
			
		||||
* Fixed deprecation warning in `ScopedMessage::~ScopedMessage`
 | 
			
		||||
* All uses of `min` or `max` identifiers are now wrapped in parentheses
 | 
			
		||||
  * This avoids problems when Windows headers define `min` and `max` macros
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# 1.12.0
 | 
			
		||||
 | 
			
		||||
### Fixes
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@ namespace Catch {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    inline Version libraryVersion() {
 | 
			
		||||
        static Version version( 1, 12, 0, "", 0 );
 | 
			
		||||
        static Version version( 1, 12, 1, "", 0 );
 | 
			
		||||
        return version;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
/*
 | 
			
		||||
 *  Catch v1.12.0
 | 
			
		||||
 *  Generated: 2018-01-11 21:56:34.893972
 | 
			
		||||
 *  Catch v1.12.1
 | 
			
		||||
 *  Generated: 2018-03-02 21:17:41.036711
 | 
			
		||||
 *  ----------------------------------------------------------
 | 
			
		||||
 *  This file has been merged from multiple headers. Please don't edit it directly
 | 
			
		||||
 *  Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
 | 
			
		||||
@@ -7292,9 +7292,9 @@ namespace Catch {
 | 
			
		||||
        result_type operator()( result_type n ) const { return std::rand() % n; }
 | 
			
		||||
 | 
			
		||||
#ifdef CATCH_CONFIG_CPP11_SHUFFLE
 | 
			
		||||
        static constexpr result_type min() { return 0; }
 | 
			
		||||
        static constexpr result_type max() { return 1000000; }
 | 
			
		||||
        result_type operator()() const { return std::rand() % max(); }
 | 
			
		||||
        static constexpr result_type (min)() { return 0; }
 | 
			
		||||
        static constexpr result_type (max)() { return 1000000; }
 | 
			
		||||
        result_type operator()() const { return std::rand() % (max)(); }
 | 
			
		||||
#endif
 | 
			
		||||
        template<typename V>
 | 
			
		||||
        static void shuffle( V& vector ) {
 | 
			
		||||
@@ -8466,7 +8466,7 @@ namespace Catch {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    inline Version libraryVersion() {
 | 
			
		||||
        static Version version( 1, 12, 0, "", 0 );
 | 
			
		||||
        static Version version( 1, 12, 1, "", 0 );
 | 
			
		||||
        return version;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -8501,11 +8501,18 @@ namespace Catch {
 | 
			
		||||
    : m_info( other.m_info )
 | 
			
		||||
    {}
 | 
			
		||||
 | 
			
		||||
#if defined(_MSC_VER)
 | 
			
		||||
#pragma warning(push)
 | 
			
		||||
#pragma warning(disable:4996) // std::uncaught_exception is deprecated in C++17
 | 
			
		||||
#endif
 | 
			
		||||
    ScopedMessage::~ScopedMessage() {
 | 
			
		||||
        if ( !std::uncaught_exception() ){
 | 
			
		||||
            getResultCapture().popScopedMessage(m_info);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
#if defined(_MSC_VER)
 | 
			
		||||
#pragma warning(pop)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
} // end namespace Catch
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,7 @@ class CatchConanTest(ConanFile):
 | 
			
		||||
    settings = "os", "compiler", "arch", "build_type"
 | 
			
		||||
    username = getenv("CONAN_USERNAME", "philsquared")
 | 
			
		||||
    channel = getenv("CONAN_CHANNEL", "testing")
 | 
			
		||||
    requires = "Catch/1.12.0@%s/%s" % (username, channel)
 | 
			
		||||
    requires = "Catch/1.12.1@%s/%s" % (username, channel)
 | 
			
		||||
 | 
			
		||||
    def build(self):
 | 
			
		||||
        cmake = CMake(self)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user