From 7a65ee0c61b04b09f10655f03be2fc082c8d5b2b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 9 Apr 2015 04:46:39 +0200 Subject: Introduce rule_t and grammar_t --- src/item.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/item.hpp') diff --git a/src/item.hpp b/src/item.hpp index ae282a9..59d694e 100644 --- a/src/item.hpp +++ b/src/item.hpp @@ -34,8 +34,8 @@ namespace solar { struct item_t : public std::tuple, unsigned> { - item_t(const std::string &lhs) - : std::tuple, unsigned>(lhs, std::vector(), 0) {} + item_t(const std::string &lhs, const std::vector &rhs = std::vector()) + : std::tuple, unsigned>(lhs, rhs, 0) {} const std::string & get_lhs() const { return std::get<0>(*this); -- cgit v1.2.3