A load more C++11 tweaks - mostly moving initialisations from constructors to inline

This commit is contained in:
Phil Nash 2017-04-25 18:56:53 +01:00
parent cc8206f4c3
commit e749724a11
23 changed files with 64 additions and 145 deletions

View file

@ -25,7 +25,7 @@ class MatchExpression;
template<typename T>
class ExpressionLhs : public DecomposedExpression {
public:
ExpressionLhs( ResultBuilder& rb, T lhs ) : m_rb( rb ), m_lhs( lhs ), m_truthy(false) {}
ExpressionLhs( ResultBuilder& rb, T lhs ) : m_rb( rb ), m_lhs( lhs ) {}
ExpressionLhs& operator = ( const ExpressionLhs& );
@ -98,7 +98,7 @@ private:
private:
ResultBuilder& m_rb;
T m_lhs;
bool m_truthy;
bool m_truthy = false;
};
template<typename LhsT, Internal::Operator Op, typename RhsT>