catch2/include
Matthew Parnell 7294bd15d7 Add STATIC_REQUIRE for compile time assertions
issue #1356

A constant expression can be checked at compile time; if the user wishes
to check something they known can  be checked at compile time, then they
can now STATIC_REQUIRE.

By  default  this  will  use  REQUIRE  and  be  at  runtime,  such  that
other  assertions   can  be   run.  It  can   be  enabled   by  defining
CATCH_USE_STATIC_REQUIRE

This uses static_assert; as some compilers cannot handle the modern:
    static_assert(expr)
and require the older form with a message:
    static_assert(expr, desc)
the expression has been included as  the message, rather than leaving it
as an empty string, which can be a warning on some linters.
2018-08-14 11:29:45 +01:00
..
external Bring in Clara v1.1.4 2018-03-09 10:37:56 +01:00
internal Optimize SourceLineInfo::operator< with short-circuiting 2018-07-23 20:46:42 +02:00
reporters Fix Listening reporter use of ReporterPreferences 2018-07-22 22:58:18 +02:00
catch_with_main.hpp Fixed catch_with_main.hpp (no longer references deleted catch_runner.hpp) 2015-12-28 15:06:04 +00:00
catch.hpp Add STATIC_REQUIRE for compile time assertions 2018-08-14 11:29:45 +01:00