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

This commit is contained in:
Phil Nash committed 2017-04-25 19:30:53 +01:00
1 parent cc8206f4c3
commit e749724a11
23 files changed
+64 -145

No files matched your search

+2 -2
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>