catch2/include/internal
Martin Hořeňovský 0354d50278 Added templated constructor to C++11 Approx
When using C++11, comparison operators are already templated to take
anything that can be explicitly converted to double, but constructor
took only doubles. This lead to warnings when an `Approx` was
constructed from floats, which was problematic for some users.

Since just adding float constructor would be a large breaking change, as
suddenly `Approx( 1 )` would become ambiguous, I added a templated
constructor that will take anything that is explicitly convertible to
double. This has the added benefit of allowing constructing `Approx`
instances from instances of strong typedefs, ie allowing
`calculated_temp == Approx( known_temp)`.

Closes #873
2017-04-04 15:19:15 +02:00
..
catch_approx.hpp Added templated constructor to C++11 Approx 2017-04-04 15:19:15 +02:00
catch_assertionresult.h Added a couple more unimplemented assignment operators to silence VS2013 warnings 2017-02-21 09:10:44 +00:00
catch_assertionresult.hpp Use char literal instead of string literal with 1 char 2017-01-29 23:07:15 +01:00
catch_capture.hpp Rework of REQUIRE* changes in CATCH_CONFIG_FAST_COMPILE 2017-03-29 21:12:06 +02:00
catch_clara.h New version of Clara 2014-03-17 18:40:58 +00:00
catch_commandline.hpp More include simplifications 2017-02-13 14:12:22 +01:00
catch_common.h New Matchers implementation 2017-02-14 09:16:54 +00:00
catch_common.hpp Removed single char contains() 2017-02-13 08:20:45 +00:00
catch_compiler_capabilities.h Suppress -Wexit-time-destructors in Catch code 2017-03-29 20:30:59 +02:00
catch_config.hpp More include simplifications 2017-02-13 14:12:22 +01:00
catch_console_colour_impl.hpp Add tests for #835 2017-03-06 22:07:33 +01:00
catch_console_colour.hpp Cleaned up terminal colouring impl and added more config options 2014-10-21 07:24:30 +01:00
catch_context_impl.hpp Clean up generator state 2017-01-16 10:34:16 +00:00
catch_context.h Couple more includes cleaned out 2017-02-12 12:48:25 +01:00
catch_debugger.h Enable breaking into debugger on Mac 2017-01-31 16:00:42 +00:00
catch_debugger.hpp Save errno before using sprintf, ifstream. 2017-03-06 21:51:22 +01:00
catch_default_main.hpp Moved WIndows leak detector code out of main() 2017-02-17 23:43:31 +00:00
catch_errno_guard.hpp Save errno before using sprintf, ifstream. 2017-03-06 21:51:22 +01:00
catch_evaluate.hpp Disabled C4312 in the evaluate layer 2017-02-22 14:14:59 +01:00
catch_exception_translator_registry.hpp exception translators considered even for types deriving from std::exception, now 2015-11-18 08:39:21 +00:00
catch_expression_lhs.hpp Merge branch 'warning-c4512' of https://github.com/gchudnov/Catch into gchudnov-warning-c4512 2017-02-21 08:56:14 +00:00
catch_fatal_condition.hpp Don't reconstruct expression on encountering fatal error 2017-03-02 18:18:28 +01:00
catch_generators_impl.hpp Removed all trailing whitespace 2013-07-03 19:14:59 +01:00
catch_generators.hpp Use bulk vector::insert rather than back_inserter 2017-03-15 15:19:38 +00:00
catch_impl.hpp Fixed unintentional tabs 2017-03-06 09:23:31 +00:00
catch_interfaces_capture.h Fixed up CATCH_CONFIG_FAST_COMPILE for REQUIREs 2017-04-03 11:36:55 +02:00
catch_interfaces_config.h More include simplifications 2017-02-13 14:12:22 +01:00
catch_interfaces_exception.h Use __COUNTER__ when generating unique names instead of __LINE__, if available. 2016-03-14 07:55:00 +00:00
catch_interfaces_generators.h Removed all trailing whitespace 2013-07-03 19:14:59 +01:00
catch_interfaces_registry_hub.h Tag Alias registry is part of registry hub instead of it’s own singleton 2017-03-15 09:45:37 +00:00
catch_interfaces_reporter.h More include simplifications 2017-02-13 14:12:22 +01:00
catch_interfaces_runner.h Big assertion capture refactoring. 2014-05-28 18:53:01 +01:00
catch_interfaces_tag_alias_registry.h Tag aliases feature 2014-06-30 07:33:17 +01:00
catch_interfaces_testcase.h Stripped trailing whitespace from all source code lines 2015-11-04 18:04:15 +00:00
catch_legacy_reporter_adapter.h Support for reporting skipped tests 2014-12-22 20:10:33 +00:00
catch_legacy_reporter_adapter.hpp Support for reporting skipped tests 2014-12-22 20:10:33 +00:00
catch_list.hpp Use char literal instead of string literal with 1 char 2017-01-29 23:07:15 +01:00
catch_matchers_string.h Take std::string by const-ref where possible 2017-03-06 13:16:43 +01:00
catch_matchers_string.hpp Take std::string by const-ref where possible 2017-03-06 13:16:43 +01:00
catch_matchers_vector.h Added first vector matchers (Contains and Equals) 2017-02-21 16:05:04 +00:00
catch_matchers.hpp Fix Objective-C Matchers 2017-03-13 15:40:21 +00:00
catch_message.h Suppressed a load of warnings 2014-05-19 18:57:14 +01:00
catch_message.hpp Fmt and tag fixup for #876 2017-04-04 11:31:13 +02:00
catch_notimplemented_exception.h More include simplifications 2017-02-13 14:12:22 +01:00
catch_notimplemented_exception.hpp More include simplifications 2017-02-13 14:12:22 +01:00
catch_objc_arc.hpp Conditionally compile clang pragmas 2012-08-16 18:47:41 +01:00
catch_objc.hpp Fix Objective-C Matchers 2017-03-13 15:40:21 +00:00
catch_option.hpp Use CATCH_NULL instead of NULL 2015-07-01 07:33:27 +01:00
catch_platform.h Merge branch 'windows-header-defines' of https://github.com/horenmar/Catch 2017-01-16 17:00:43 +01:00
catch_ptr.hpp Removed Runner class 2015-07-28 18:55:11 +01:00
catch_reenable_warnings.h Suppress warnings correctly for Intel compiler 2015-03-04 07:54:35 +00:00
catch_registry_hub.hpp Tag Alias registry is part of registry hub instead of it’s own singleton 2017-03-15 09:45:37 +00:00
catch_reporter_registrars.hpp Added CATCH_REGISTER_LISTENER without the INTERNAL_ prefix 2017-03-10 19:15:03 +00:00
catch_reporter_registry.hpp Some small clean-ups and refactorings 2015-09-28 01:09:06 -07:00
catch_result_builder.h Rework of REQUIRE* changes in CATCH_CONFIG_FAST_COMPILE 2017-03-29 21:12:06 +02:00
catch_result_builder.hpp Fixed up CATCH_CONFIG_FAST_COMPILE for REQUIREs 2017-04-03 11:36:55 +02:00
catch_result_type.h Stripped trailing whitespace from all source code lines 2015-11-04 18:04:15 +00:00
catch_run_context.hpp Reset the UnexpectedException report state 2017-04-03 11:48:50 +02:00
catch_section_info.h More include simplifications 2017-02-13 14:12:22 +01:00
catch_section_info.hpp More include simplifications 2017-02-13 14:12:22 +01:00
catch_section.h Updated NonCopyable (to include C++11 version) and use for Session and Section 2014-10-03 08:15:27 +01:00
catch_section.hpp More include simplifications 2017-02-13 14:12:22 +01:00
catch_stream.h Fixes build error caused by missing include. 2016-11-28 15:47:20 +01:00
catch_stream.hpp Use char literal instead of string literal with 1 char 2017-01-29 23:07:15 +01:00
catch_streambuf.h Merge branch 'master' of https://github.com/gnzlbg/Catch 2014-04-18 08:49:35 +01:00
catch_suppress_warnings.h Improve -Wparentheses supression for gcc 2017-02-15 17:11:44 +01:00
catch_tag_alias_registry.h Tag Alias registry is part of registry hub instead of it’s own singleton 2017-03-15 09:45:37 +00:00
catch_tag_alias_registry.hpp Throw instead of calling exit in RegistrarForTagAliases constructor 2017-03-22 18:40:07 +01:00
catch_tag_alias.h Take std::string by const-ref where possible 2017-03-06 13:16:43 +01:00
catch_test_case_info.h Added [!nonportable] tag 2017-01-23 17:44:55 +00:00
catch_test_case_info.hpp Throw instead of calling exit in enforceNotReservedTag 2017-03-22 17:53:22 +01:00
catch_test_case_registry_impl.hpp More include simplifications 2017-02-13 14:12:22 +01:00
catch_test_case_tracker.hpp Suppress -Wexit-time-destructors in Catch code 2017-03-29 20:30:59 +02:00
catch_test_registry.hpp Suppress -Wexit-time-destructors in Catch code 2017-03-29 20:30:59 +02:00
catch_test_spec_parser.hpp Fixed test spec parser issue 2017-02-22 07:49:38 +00:00
catch_test_spec.hpp Added braces to emphasise the return logic 2016-09-27 09:58:12 +01:00
catch_text.h New version of Clara 2014-03-17 18:40:58 +00:00
catch_timer.h Changed time function name to reflect that it actually returns Microseconds as reported in #323 2014-09-03 19:20:23 +01:00
catch_timer.hpp Moved definition of _BSD_SOURCE earlier 2017-03-01 15:59:10 +00:00
catch_tostring.h Stripped trailing whitespace from all source code lines 2015-11-04 18:04:15 +00:00
catch_tostring.hpp Remove \l, add \f in character pretty printing 2017-02-01 21:31:14 +01:00
catch_totals.hpp Fixed up xml reporter and rebased 2014-12-30 18:24:31 +00:00
catch_type_traits.hpp REQUIRE_THROWS_AS now catches exception by const& 2017-02-09 12:57:01 +01:00
catch_version.h Version struct now uses char* for holding branch name 2017-03-22 17:45:36 +01:00
catch_version.hpp Version struct now uses char* for holding branch name 2017-03-22 17:45:36 +01:00
catch_wildcard_pattern.hpp Moved some std includes out from catch_common.h 2017-02-12 12:17:07 +01:00
catch_windows_h_proxy.h Extracted NOMINMAX and WIN32_LEAN_AND_MEAN guards into a proxy header 2017-01-16 16:52:44 +01:00
catch_xmlwriter.hpp XML Reporter closes tag and flushes stream at end of TestCase and Section tags. 2017-02-13 15:56:25 +00:00