Don't sanitize exception type in REQUIRE_THROWS_AS

Effectively a revert of previous commit, fixing #542, where this was
added to stop linters complaining about `REQUIRE_THROWS_AS` used like
`REQUIRE_THROWS_AS(expr, std::exception);`, which would be slicing the
caught exception. Now it is user's responsibility to pass us proper
exception type.

Closes #833 which wanted to add `typename`, so that the construct works
in a template, but that would not work with MSVC and older GCC's, as
having `typename` outside of a template is allowed only from C++11
onward.
2 files changed
tree: 8a1b512e3f840eacbdeccb6d52985ce2ec760808
  1. .github/
  2. docs/
  3. include/
  4. projects/
  5. scripts/
  6. single_include/
  7. .gitattributes
  8. .gitignore
  9. .travis.yml
  10. appveyor.yml
  11. catch-hand-icon.png
  12. catch-icon-tiny.png
  13. catch-logo-small.png
  14. CMakeLists.txt
  15. LICENSE.txt
  16. README.md
README.md

catch logo

Github Releases Build Status Build status

The latest, single header, version can be downloaded directly using this link

What's the Catch?

Catch stands for C++ Automated Test Cases in Headers and is a multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C). It is implemented entirely in a set of header files, but is packaged up as a single header for extra convenience.

How to use it

This documentation comprises these three parts:

More