Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Created by Phil on 15/04/2013. |
| 3 | * Copyright 2013 Two Blue Cubes Ltd. All rights reserved. |
| 4 | * |
| 5 | * Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 6 | * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | */ |
| 8 | #ifndef TWOBLUECUBES_CATCH_COMPILER_CAPABILITIES_HPP_INCLUDED |
| 9 | #define TWOBLUECUBES_CATCH_COMPILER_CAPABILITIES_HPP_INCLUDED |
| 10 | |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 11 | // Detect a number of compiler features - mostly C++11/14 conformance - by compiler |
| 12 | // The following features are defined: |
| 13 | // |
| 14 | // CATCH_CONFIG_CPP11_NULLPTR : is nullptr supported? |
| 15 | // CATCH_CONFIG_CPP11_NOEXCEPT : is noexcept supported? |
| 16 | // CATCH_CONFIG_CPP11_GENERATED_METHODS : The delete and default keywords for compiler generated methods |
| 17 | // CATCH_CONFIG_CPP11_IS_ENUM : std::is_enum is supported? |
| 18 | // CATCH_CONFIG_CPP11_TUPLE : std::tuple is supported |
Phil Nash | 733ebb6 | 2015-07-23 19:03:33 +0100 | [diff] [blame] | 19 | // CATCH_CONFIG_CPP11_LONG_LONG : is long long supported? |
Phil Nash | 4cb7476 | 2015-08-05 19:02:17 +0100 | [diff] [blame] | 20 | // CATCH_CONFIG_CPP11_OVERRIDE : is override supported? |
Phil Nash | 40d0d2f | 2015-08-11 08:09:41 +0100 | [diff] [blame] | 21 | // CATCH_CONFIG_CPP11_UNIQUE_PTR : is unique_ptr supported (otherwise use auto_ptr) |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 22 | |
| 23 | // CATCH_CONFIG_CPP11_OR_GREATER : Is C++11 supported? |
| 24 | |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 25 | // CATCH_CONFIG_VARIADIC_MACROS : are variadic macros supported? |
Phil Nash | 13a887a | 2015-12-15 07:50:51 +0000 | [diff] [blame^] | 26 | // CATCH_CONFIG_COUNTER : is the __COUNTER__ macro supported? |
Phil Nash | 40d0d2f | 2015-08-11 08:09:41 +0100 | [diff] [blame] | 27 | // **************** |
| 28 | // Note to maintainers: if new toggles are added please document them |
| 29 | // in configuration.md, too |
| 30 | // **************** |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 31 | |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 32 | // In general each macro has a _NO_<feature name> form |
| 33 | // (e.g. CATCH_CONFIG_CPP11_NO_NULLPTR) which disables the feature. |
| 34 | // Many features, at point of detection, define an _INTERNAL_ macro, so they |
| 35 | // can be combined, en-mass, with the _NO_ forms later. |
| 36 | |
| 37 | // All the C++11 features can be disabled with CATCH_CONFIG_NO_CPP11 |
Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 38 | |
Phil Nash | 91bfe68 | 2016-02-29 08:01:06 +0000 | [diff] [blame] | 39 | #if defined(__cplusplus) && __cplusplus >= 201103L |
| 40 | # define CATCH_CPP11_OR_GREATER |
| 41 | #endif |
| 42 | |
Phil Nash | 563429d | 2013-12-14 14:32:26 +0000 | [diff] [blame] | 43 | #ifdef __clang__ |
Phil Nash | 563429d | 2013-12-14 14:32:26 +0000 | [diff] [blame] | 44 | |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 45 | # if __has_feature(cxx_nullptr) |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 46 | # define CATCH_INTERNAL_CONFIG_CPP11_NULLPTR |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 47 | # endif |
Phil Nash | 563429d | 2013-12-14 14:32:26 +0000 | [diff] [blame] | 48 | |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 49 | # if __has_feature(cxx_noexcept) |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 50 | # define CATCH_INTERNAL_CONFIG_CPP11_NOEXCEPT |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 51 | # endif |
Phil Nash | 563429d | 2013-12-14 14:32:26 +0000 | [diff] [blame] | 52 | |
Phil Nash | 91bfe68 | 2016-02-29 08:01:06 +0000 | [diff] [blame] | 53 | # if defined(CATCH_CPP11_OR_GREATER) |
| 54 | # define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS _Pragma( "clang diagnostic ignored \"-Wparentheses\"" ) |
| 55 | # endif |
| 56 | |
Phil Nash | 563429d | 2013-12-14 14:32:26 +0000 | [diff] [blame] | 57 | #endif // __clang__ |
| 58 | |
Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 59 | //////////////////////////////////////////////////////////////////////////////// |
| 60 | // Borland |
| 61 | #ifdef __BORLANDC__ |
| 62 | |
Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 63 | |
| 64 | #endif // __BORLANDC__ |
| 65 | |
| 66 | //////////////////////////////////////////////////////////////////////////////// |
| 67 | // EDG |
| 68 | #ifdef __EDG_VERSION__ |
| 69 | |
Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 70 | |
| 71 | #endif // __EDG_VERSION__ |
| 72 | |
| 73 | //////////////////////////////////////////////////////////////////////////////// |
| 74 | // Digital Mars |
| 75 | #ifdef __DMC__ |
| 76 | |
Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 77 | |
| 78 | #endif // __DMC__ |
| 79 | |
| 80 | //////////////////////////////////////////////////////////////////////////////// |
| 81 | // GCC |
| 82 | #ifdef __GNUC__ |
| 83 | |
Phil Nash | 91bfe68 | 2016-02-29 08:01:06 +0000 | [diff] [blame] | 84 | # if __GNUC__ == 4 && __GNUC_MINOR__ >= 6 && defined(__GXX_EXPERIMENTAL_CXX0X__) |
| 85 | # define CATCH_INTERNAL_CONFIG_CPP11_NULLPTR |
| 86 | # endif |
| 87 | |
| 88 | # if !defined(CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS) && defined(CATCH_CPP11_OR_GREATER) |
David Grayson | 97e3354 | 2016-03-04 19:24:07 -0800 | [diff] [blame] | 89 | # define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS _Pragma( "GCC diagnostic ignored \"-Wparentheses\"" ) |
Phil Nash | 91bfe68 | 2016-02-29 08:01:06 +0000 | [diff] [blame] | 90 | # endif |
Phil Nash | 563429d | 2013-12-14 14:32:26 +0000 | [diff] [blame] | 91 | |
Phil Nash | f3308ed | 2015-07-27 18:34:21 +0100 | [diff] [blame] | 92 | // - otherwise more recent versions define __cplusplus >= 201103L |
| 93 | // and will get picked up below |
| 94 | |
Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 95 | |
| 96 | #endif // __GNUC__ |
| 97 | |
| 98 | //////////////////////////////////////////////////////////////////////////////// |
| 99 | // Visual C++ |
| 100 | #ifdef _MSC_VER |
| 101 | |
Phil Nash | 43470b2 | 2015-05-19 22:37:23 +0100 | [diff] [blame] | 102 | #if (_MSC_VER >= 1600) |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 103 | # define CATCH_INTERNAL_CONFIG_CPP11_NULLPTR |
Phil Nash | 40d0d2f | 2015-08-11 08:09:41 +0100 | [diff] [blame] | 104 | # define CATCH_INTERNAL_CONFIG_CPP11_UNIQUE_PTR |
Phil Nash | 43470b2 | 2015-05-19 22:37:23 +0100 | [diff] [blame] | 105 | #endif |
| 106 | |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 107 | #if (_MSC_VER >= 1900 ) // (VC++ 13 (VS2015)) |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 108 | #define CATCH_INTERNAL_CONFIG_CPP11_NOEXCEPT |
| 109 | #define CATCH_INTERNAL_CONFIG_CPP11_GENERATED_METHODS |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 110 | #endif |
| 111 | |
Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 112 | #endif // _MSC_VER |
| 113 | |
Phil Nash | 40d0d2f | 2015-08-11 08:09:41 +0100 | [diff] [blame] | 114 | //////////////////////////////////////////////////////////////////////////////// |
| 115 | |
Phil Nash | 4dd3f68 | 2013-04-22 08:19:17 +0100 | [diff] [blame] | 116 | // Use variadic macros if the compiler supports them |
| 117 | #if ( defined _MSC_VER && _MSC_VER > 1400 && !defined __EDGE__) || \ |
| 118 | ( defined __WAVE__ && __WAVE_HAS_VARIADICS ) || \ |
| 119 | ( defined __GNUC__ && __GNUC__ >= 3 ) || \ |
| 120 | ( !defined __cplusplus && __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L ) |
Phil Nash | 597ed1f | 2013-05-14 19:31:21 +0100 | [diff] [blame] | 121 | |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 122 | #define CATCH_INTERNAL_CONFIG_VARIADIC_MACROS |
Phil Nash | 597ed1f | 2013-05-14 19:31:21 +0100 | [diff] [blame] | 123 | |
Phil Nash | 4dd3f68 | 2013-04-22 08:19:17 +0100 | [diff] [blame] | 124 | #endif |
Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 125 | |
Phil Nash | 13a887a | 2015-12-15 07:50:51 +0000 | [diff] [blame^] | 126 | // Use __COUNTER__ if the compiler supports it |
| 127 | #if ( defined _MSC_VER && _MSC_VER >= 1300 ) || \ |
| 128 | ( defined __GNUC__ && __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 ) || \ |
| 129 | ( defined __clang__ && __clang_major__ >= 3 ) |
| 130 | |
| 131 | #define CATCH_INTERNAL_CONFIG_COUNTER |
| 132 | |
| 133 | #endif |
Phil Nash | 91bfe68 | 2016-02-29 08:01:06 +0000 | [diff] [blame] | 134 | |
gnzlbg | ce65985 | 2014-03-20 12:48:19 +0100 | [diff] [blame] | 135 | //////////////////////////////////////////////////////////////////////////////// |
| 136 | // C++ language feature support |
| 137 | |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 138 | // catch all support for C++11 |
Phil Nash | 91bfe68 | 2016-02-29 08:01:06 +0000 | [diff] [blame] | 139 | #if defined(CATCH_CPP11_OR_GREATER) |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 140 | |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 141 | # if !defined(CATCH_INTERNAL_CONFIG_CPP11_NULLPTR) |
| 142 | # define CATCH_INTERNAL_CONFIG_CPP11_NULLPTR |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 143 | # endif |
| 144 | |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 145 | # ifndef CATCH_INTERNAL_CONFIG_CPP11_NOEXCEPT |
| 146 | # define CATCH_INTERNAL_CONFIG_CPP11_NOEXCEPT |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 147 | # endif |
| 148 | |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 149 | # ifndef CATCH_INTERNAL_CONFIG_CPP11_GENERATED_METHODS |
| 150 | # define CATCH_INTERNAL_CONFIG_CPP11_GENERATED_METHODS |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 151 | # endif |
| 152 | |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 153 | # ifndef CATCH_INTERNAL_CONFIG_CPP11_IS_ENUM |
| 154 | # define CATCH_INTERNAL_CONFIG_CPP11_IS_ENUM |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 155 | # endif |
| 156 | |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 157 | # ifndef CATCH_INTERNAL_CONFIG_CPP11_TUPLE |
| 158 | # define CATCH_INTERNAL_CONFIG_CPP11_TUPLE |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 159 | # endif |
| 160 | |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 161 | # ifndef CATCH_INTERNAL_CONFIG_VARIADIC_MACROS |
| 162 | # define CATCH_INTERNAL_CONFIG_VARIADIC_MACROS |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 163 | # endif |
| 164 | |
Phil Nash | 733ebb6 | 2015-07-23 19:03:33 +0100 | [diff] [blame] | 165 | # if !defined(CATCH_INTERNAL_CONFIG_CPP11_LONG_LONG) |
| 166 | # define CATCH_INTERNAL_CONFIG_CPP11_LONG_LONG |
| 167 | # endif |
| 168 | |
Phil Nash | 4cb7476 | 2015-08-05 19:02:17 +0100 | [diff] [blame] | 169 | # if !defined(CATCH_INTERNAL_CONFIG_CPP11_OVERRIDE) |
| 170 | # define CATCH_INTERNAL_CONFIG_CPP11_OVERRIDE |
| 171 | # endif |
Phil Nash | 40d0d2f | 2015-08-11 08:09:41 +0100 | [diff] [blame] | 172 | # if !defined(CATCH_INTERNAL_CONFIG_CPP11_UNIQUE_PTR) |
| 173 | # define CATCH_INTERNAL_CONFIG_CPP11_UNIQUE_PTR |
| 174 | # endif |
Phil Nash | 4cb7476 | 2015-08-05 19:02:17 +0100 | [diff] [blame] | 175 | |
| 176 | |
Phil Nash | e86daf8 | 2015-05-19 18:37:58 +0100 | [diff] [blame] | 177 | #endif // __cplusplus >= 201103L |
gnzlbg | ce65985 | 2014-03-20 12:48:19 +0100 | [diff] [blame] | 178 | |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 179 | // Now set the actual defines based on the above + anything the user has configured |
| 180 | #if defined(CATCH_INTERNAL_CONFIG_CPP11_NULLPTR) && !defined(CATCH_CONFIG_CPP11_NO_NULLPTR) && !defined(CATCH_CONFIG_CPP11_NULLPTR) && !defined(CATCH_CONFIG_NO_CPP11) |
| 181 | # define CATCH_CONFIG_CPP11_NULLPTR |
| 182 | #endif |
| 183 | #if defined(CATCH_INTERNAL_CONFIG_CPP11_NOEXCEPT) && !defined(CATCH_CONFIG_CPP11_NO_NOEXCEPT) && !defined(CATCH_CONFIG_CPP11_NOEXCEPT) && !defined(CATCH_CONFIG_NO_CPP11) |
| 184 | # define CATCH_CONFIG_CPP11_NOEXCEPT |
| 185 | #endif |
| 186 | #if defined(CATCH_INTERNAL_CONFIG_CPP11_GENERATED_METHODS) && !defined(CATCH_CONFIG_CPP11_NO_GENERATED_METHODS) && !defined(CATCH_CONFIG_CPP11_GENERATED_METHODS) && !defined(CATCH_CONFIG_NO_CPP11) |
| 187 | # define CATCH_CONFIG_CPP11_GENERATED_METHODS |
| 188 | #endif |
| 189 | #if defined(CATCH_INTERNAL_CONFIG_CPP11_IS_ENUM) && !defined(CATCH_CONFIG_CPP11_NO_IS_ENUM) && !defined(CATCH_CONFIG_CPP11_IS_ENUM) && !defined(CATCH_CONFIG_NO_CPP11) |
| 190 | # define CATCH_CONFIG_CPP11_IS_ENUM |
| 191 | #endif |
| 192 | #if defined(CATCH_INTERNAL_CONFIG_CPP11_TUPLE) && !defined(CATCH_CONFIG_CPP11_NO_TUPLE) && !defined(CATCH_CONFIG_CPP11_TUPLE) && !defined(CATCH_CONFIG_NO_CPP11) |
| 193 | # define CATCH_CONFIG_CPP11_TUPLE |
| 194 | #endif |
| 195 | #if defined(CATCH_INTERNAL_CONFIG_VARIADIC_MACROS) && !defined(CATCH_CONFIG_NO_VARIADIC_MACROS) && !defined(CATCH_CONFIG_VARIADIC_MACROS) |
Phil Nash | 733ebb6 | 2015-07-23 19:03:33 +0100 | [diff] [blame] | 196 | # define CATCH_CONFIG_VARIADIC_MACROS |
| 197 | #endif |
Phil Nash | 40d0d2f | 2015-08-11 08:09:41 +0100 | [diff] [blame] | 198 | #if defined(CATCH_INTERNAL_CONFIG_CPP11_LONG_LONG) && !defined(CATCH_CONFIG_NO_LONG_LONG) && !defined(CATCH_CONFIG_CPP11_LONG_LONG) && !defined(CATCH_CONFIG_NO_CPP11) |
Phil Nash | 733ebb6 | 2015-07-23 19:03:33 +0100 | [diff] [blame] | 199 | # define CATCH_CONFIG_CPP11_LONG_LONG |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 200 | #endif |
Phil Nash | 40d0d2f | 2015-08-11 08:09:41 +0100 | [diff] [blame] | 201 | #if defined(CATCH_INTERNAL_CONFIG_CPP11_OVERRIDE) && !defined(CATCH_CONFIG_NO_OVERRIDE) && !defined(CATCH_CONFIG_CPP11_OVERRIDE) && !defined(CATCH_CONFIG_NO_CPP11) |
Phil Nash | 4cb7476 | 2015-08-05 19:02:17 +0100 | [diff] [blame] | 202 | # define CATCH_CONFIG_CPP11_OVERRIDE |
| 203 | #endif |
Phil Nash | 40d0d2f | 2015-08-11 08:09:41 +0100 | [diff] [blame] | 204 | #if defined(CATCH_INTERNAL_CONFIG_CPP11_UNIQUE_PTR) && !defined(CATCH_CONFIG_NO_UNIQUE_PTR) && !defined(CATCH_CONFIG_CPP11_UNIQUE_PTR) && !defined(CATCH_CONFIG_NO_CPP11) |
| 205 | # define CATCH_CONFIG_CPP11_UNIQUE_PTR |
| 206 | #endif |
Phil Nash | 13a887a | 2015-12-15 07:50:51 +0000 | [diff] [blame^] | 207 | #if defined(CATCH_INTERNAL_CONFIG_COUNTER) && !defined(CATCH_CONFIG_NO_COUNTER) && !defined(CATCH_CONFIG_COUNTER) |
| 208 | # define CATCH_CONFIG_COUNTER |
| 209 | #endif |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 210 | |
Phil Nash | 91bfe68 | 2016-02-29 08:01:06 +0000 | [diff] [blame] | 211 | #if !defined(CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS) |
| 212 | # define CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS |
| 213 | #endif |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 214 | |
gnzlbg | ce65985 | 2014-03-20 12:48:19 +0100 | [diff] [blame] | 215 | // noexcept support: |
Phil Nash | 1a6f2a0 | 2014-04-23 18:19:19 +0100 | [diff] [blame] | 216 | #if defined(CATCH_CONFIG_CPP11_NOEXCEPT) && !defined(CATCH_NOEXCEPT) |
| 217 | # define CATCH_NOEXCEPT noexcept |
| 218 | # define CATCH_NOEXCEPT_IS(x) noexcept(x) |
| 219 | #else |
gnzlbg | ce65985 | 2014-03-20 12:48:19 +0100 | [diff] [blame] | 220 | # define CATCH_NOEXCEPT throw() |
| 221 | # define CATCH_NOEXCEPT_IS(x) |
| 222 | #endif |
| 223 | |
Phil Nash | 805de43 | 2015-07-01 07:33:27 +0100 | [diff] [blame] | 224 | // nullptr support |
| 225 | #ifdef CATCH_CONFIG_CPP11_NULLPTR |
| 226 | # define CATCH_NULL nullptr |
| 227 | #else |
| 228 | # define CATCH_NULL NULL |
| 229 | #endif |
Phil Nash | 7ab3b5a | 2015-06-30 08:41:55 +0100 | [diff] [blame] | 230 | |
Phil Nash | 4cb7476 | 2015-08-05 19:02:17 +0100 | [diff] [blame] | 231 | // override support |
| 232 | #ifdef CATCH_CONFIG_CPP11_OVERRIDE |
| 233 | # define CATCH_OVERRIDE override |
| 234 | #else |
| 235 | # define CATCH_OVERRIDE |
| 236 | #endif |
| 237 | |
Phil Nash | 40d0d2f | 2015-08-11 08:09:41 +0100 | [diff] [blame] | 238 | // unique_ptr support |
| 239 | #ifdef CATCH_CONFIG_CPP11_UNIQUE_PTR |
| 240 | # define CATCH_AUTO_PTR( T ) std::unique_ptr<T> |
| 241 | #else |
| 242 | # define CATCH_AUTO_PTR( T ) std::auto_ptr<T> |
| 243 | #endif |
| 244 | |
Phil Nash | 5062d3e | 2013-04-16 22:55:31 +0100 | [diff] [blame] | 245 | #endif // TWOBLUECUBES_CATCH_COMPILER_CAPABILITIES_HPP_INCLUDED |
| 246 | |