summaryrefslogtreecommitdiffstats
path: root/src/item.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.hpp')
-rw-r--r--src/item.hpp4
1 files changed, 2 insertions, 2 deletions
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<std::string, std::vector<symbol_t>, unsigned> {
- item_t(const std::string &lhs)
- : std::tuple<std::string, std::vector<symbol_t>, unsigned>(lhs, std::vector<symbol_t>(), 0) {}
+ item_t(const std::string &lhs, const std::vector<symbol_t> &rhs = std::vector<symbol_t>())
+ : std::tuple<std::string, std::vector<symbol_t>, unsigned>(lhs, rhs, 0) {}
const std::string & get_lhs() const {
return std::get<0>(*this);