Sprinkle some constexpr around

This commit is contained in:
Martin Hořeňovský 2023-03-22 19:12:32 +01:00
parent 5b665be643
commit 4f4ad8ada9
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 2 additions and 2 deletions

View File

@ -17,10 +17,10 @@ namespace Catch {
// as well as // as well as
// << stuff +StreamEndStop // << stuff +StreamEndStop
struct StreamEndStop { struct StreamEndStop {
StringRef operator+() const { return StringRef(); } constexpr StringRef operator+() const { return StringRef(); }
template <typename T> template <typename T>
friend T const& operator+( T const& value, StreamEndStop ) { constexpr friend T const& operator+( T const& value, StreamEndStop ) {
return value; return value;
} }
}; };