diff options
| author | Martin Hořeňovský | 2024-09-13 11:16:20 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2024-09-13 16:40:11 +0200 |
| commit | 18df97df00848e91bfe1b63408bba19f8b8237ae (patch) | |
| tree | 91b5056d1a6b945500c397eea60437b4a3ad79f1 /src/catch2/internal/catch_assertion_handler.hpp | |
| parent | e97ebe62e700dad37fe460644e121ec462e75596 (diff) | |
| download | catch3-18df97df00848e91bfe1b63408bba19f8b8237ae.tar.gz | |
Sprinkle some constexpr around to make Jason happy
Most of these will not matter in practice due to C++14 imposing
significant limitations on what else we can make constexpr, and we cannot
have references outliving the constexpr context either way.
Diffstat (limited to 'src/catch2/internal/catch_assertion_handler.hpp')
| -rw-r--r-- | src/catch2/internal/catch_assertion_handler.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_assertion_handler.hpp b/src/catch2/internal/catch_assertion_handler.hpp index 098ed7a9..c71c6898 100644 --- a/src/catch2/internal/catch_assertion_handler.hpp +++ b/src/catch2/internal/catch_assertion_handler.hpp @@ -42,7 +42,7 @@ namespace Catch { template<typename T> - void handleExpr( ExprLhs<T> const& expr ) { + constexpr void handleExpr( ExprLhs<T> const& expr ) { handleExpr( expr.makeUnaryExpr() ); } void handleExpr( ITransientExpression const& expr ); |