mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Inline and default LazyExpression's constructor
This commit is contained in:
parent
d5e08a4beb
commit
824ffe6525
@ -26,12 +26,6 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LazyExpression::LazyExpression( bool isNegated )
|
|
||||||
: m_isNegated( isNegated )
|
|
||||||
{}
|
|
||||||
|
|
||||||
LazyExpression::LazyExpression( LazyExpression const& other ) : m_isNegated( other.m_isNegated ) {}
|
|
||||||
|
|
||||||
auto operator << ( std::ostream& os, LazyExpression const& lazyExpr ) -> std::ostream& {
|
auto operator << ( std::ostream& os, LazyExpression const& lazyExpr ) -> std::ostream& {
|
||||||
if( lazyExpr.m_isNegated )
|
if( lazyExpr.m_isNegated )
|
||||||
os << "!";
|
os << "!";
|
||||||
|
@ -27,8 +27,10 @@ namespace Catch {
|
|||||||
ITransientExpression const* m_transientExpression = nullptr;
|
ITransientExpression const* m_transientExpression = nullptr;
|
||||||
bool m_isNegated;
|
bool m_isNegated;
|
||||||
public:
|
public:
|
||||||
LazyExpression( bool isNegated );
|
LazyExpression( bool isNegated ):
|
||||||
LazyExpression( LazyExpression const& other );
|
m_isNegated(isNegated)
|
||||||
|
{}
|
||||||
|
LazyExpression(LazyExpression const& other) = default;
|
||||||
LazyExpression& operator = ( LazyExpression const& ) = delete;
|
LazyExpression& operator = ( LazyExpression const& ) = delete;
|
||||||
|
|
||||||
explicit operator bool() const {
|
explicit operator bool() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user