mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Sprinkle some constexpr around
This commit is contained in:
parent
5b665be643
commit
4f4ad8ada9
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user