summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/item.h b/src/item.h
index 84385eb7..f23350fc 100644
--- a/src/item.h
+++ b/src/item.h
@@ -53,8 +53,10 @@ struct position_t
std::size_t beg_line;
istream_pos_type end_pos;
std::size_t end_line;
+ std::size_t sequence;
- position_t() : beg_pos(0), beg_line(0), end_pos(0), end_line(0) {
+ position_t()
+ : beg_pos(0), beg_line(0), end_pos(0), end_line(0), sequence(0) {
TRACE_CTOR(position_t, "");
}
position_t(const position_t& pos) {
@@ -72,6 +74,7 @@ struct position_t
beg_line = pos.beg_line;
end_pos = pos.end_pos;
end_line = pos.end_line;
+ sequence = pos.sequence;
}
return *this;
}
@@ -89,6 +92,7 @@ private:
ar & beg_line;
ar & end_pos;
ar & end_line;
+ ar & sequence;
}
#endif // HAVE_BOOST_SERIALIZATION
};
@@ -169,6 +173,10 @@ public:
return *effective;
return *_date;
}
+ virtual date_t actual_date() const {
+ assert(_date);
+ return *_date;
+ }
virtual optional<date_t> effective_date() const {
return _date_eff;
}