mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
Sprinkle some constexpr around
This commit is contained in:
parent
5b665be643
commit
4f4ad8ada9
@ -17,10 +17,10 @@ namespace Catch {
|
||||
// as well as
|
||||
// << stuff +StreamEndStop
|
||||
struct StreamEndStop {
|
||||
StringRef operator+() const { return StringRef(); }
|
||||
constexpr StringRef operator+() const { return StringRef(); }
|
||||
|
||||
template <typename T>
|
||||
friend T const& operator+( T const& value, StreamEndStop ) {
|
||||
constexpr friend T const& operator+( T const& value, StreamEndStop ) {
|
||||
return value;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user