Allow and conditionals to be initialized from simple pairs

This commit is contained in:
Brad Davis 2015-12-30 22:24:34 -08:00
parent 4c26627622
commit 3eddf8d4a4

View file

@ -18,7 +18,11 @@ class AndConditional : public Conditional {
public:
using Pointer = std::shared_ptr<AndConditional>;
AndConditional(Conditional::List children) : _children(children) { }
AndConditional(Conditional::List children)
: _children(children) {}
AndConditional(Conditional::Pointer& first, Conditional::Pointer& second)
: _children({ first, second }) {}
virtual bool satisfied() override;