Skip to content

Commit 74effaf

Browse files
committed
v1.12.1
1 parent 7d0cfd2 commit 74effaf

File tree

6 files changed

+27
-11
lines changed

6 files changed

+27
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
[![Github Releases](https://img.shields.io/github/release/philsquared/catch.svg)](https://github.com/philsquared/catch/releases)
44
[![Build Status](https://travis-ci.org/philsquared/Catch.svg?branch=master)](https://travis-ci.org/philsquared/Catch)
55
[![Build status](https://ci.appveyor.com/api/projects/status/hrtk60hv6tw6fght/branch/master?svg=true)](https://ci.appveyor.com/project/philsquared/catch/branch/master)
6-
[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/hgiYhcvH835lHvaA)
6+
[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/q3wLegtaHunTHSls)
77

8-
<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>
8+
<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>
99

1010
## What's the Catch?
1111

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class CatchConan(ConanFile):
66
name = "Catch"
7-
version = "1.12.0"
7+
version = "1.12.1"
88
description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD"
99
author = "philsquared"
1010
generators = "cmake"

docs/release-notes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# 1.12.1
2+
3+
### Fixes
4+
* Fixed deprecation warning in `ScopedMessage::~ScopedMessage`
5+
* All uses of `min` or `max` identifiers are now wrapped in parentheses
6+
* This avoids problems when Windows headers define `min` and `max` macros
7+
8+
9+
110
# 1.12.0
211

312
### Fixes

include/internal/catch_version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace Catch {
3838
}
3939

4040
inline Version libraryVersion() {
41-
static Version version( 1, 12, 0, "", 0 );
41+
static Version version( 1, 12, 1, "", 0 );
4242
return version;
4343
}
4444

single_include/catch.hpp

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
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
44
* ----------------------------------------------------------
55
* This file has been merged from multiple headers. Please don't edit it directly
66
* Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
@@ -7292,9 +7292,9 @@ namespace Catch {
72927292
result_type operator()( result_type n ) const { return std::rand() % n; }
72937293

72947294
#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)(); }
72987298
#endif
72997299
template<typename V>
73007300
static void shuffle( V& vector ) {
@@ -8466,7 +8466,7 @@ namespace Catch {
84668466
}
84678467

84688468
inline Version libraryVersion() {
8469-
static Version version( 1, 12, 0, "", 0 );
8469+
static Version version( 1, 12, 1, "", 0 );
84708470
return version;
84718471
}
84728472

@@ -8501,11 +8501,18 @@ namespace Catch {
85018501
: m_info( other.m_info )
85028502
{}
85038503

8504+
#if defined(_MSC_VER)
8505+
#pragma warning(push)
8506+
#pragma warning(disable:4996) // std::uncaught_exception is deprecated in C++17
8507+
#endif
85048508
ScopedMessage::~ScopedMessage() {
85058509
if ( !std::uncaught_exception() ){
85068510
getResultCapture().popScopedMessage(m_info);
85078511
}
85088512
}
8513+
#if defined(_MSC_VER)
8514+
#pragma warning(pop)
8515+
#endif
85098516

85108517
} // end namespace Catch
85118518

test_package/conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CatchConanTest(ConanFile):
1010
settings = "os", "compiler", "arch", "build_type"
1111
username = getenv("CONAN_USERNAME", "philsquared")
1212
channel = getenv("CONAN_CHANNEL", "testing")
13-
requires = "Catch/1.12.0@%s/%s" % (username, channel)
13+
requires = "Catch/1.12.1@%s/%s" % (username, channel)
1414

1515
def build(self):
1616
cmake = CMake(self)

0 commit comments

Comments
 (0)