From 6492560394131a2a77b6b1eff4a369c5268fe30b Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 15 Sep 2014 23:36:39 +0100 Subject: [PATCH] Made sorting functors const --- include/internal/catch_test_case_registry_impl.hpp | 9 +++++---- single_include/catch.hpp | 11 +++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/internal/catch_test_case_registry_impl.hpp b/include/internal/catch_test_case_registry_impl.hpp index 7756b0b..9e3ef11 100644 --- a/include/internal/catch_test_case_registry_impl.hpp +++ b/include/internal/catch_test_case_registry_impl.hpp @@ -60,13 +60,14 @@ namespace Catch { return m_nonHiddenFunctions; } - struct LexSort { - bool operator() (TestCase i,TestCase j) { return (i& matchingTestCases ) const { + struct LexSort { + bool operator() (TestCase i,TestCase j) const { return (i::const_iterator it = m_functionsInOrder.begin(), diff --git a/single_include/catch.hpp b/single_include/catch.hpp index eb10258..0c3c582 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -1,6 +1,6 @@ /* * CATCH v1.1 build 4 (develop branch) - * Generated: 2014-09-15 23:31:31.318013 + * Generated: 2014-09-15 23:36:12.995567 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. @@ -5679,13 +5679,12 @@ namespace Catch { return m_nonHiddenFunctions; } - struct LexSort { - bool operator() (TestCase i,TestCase j) { return (i& matchingTestCases ) const { + struct LexSort { + bool operator() (TestCase i,TestCase j) const { return (i::const_iterator it = m_functionsInOrder.begin(),