diff --git a/include/xo/reflectutil/typeseq.hpp b/include/xo/reflectutil/typeseq.hpp index dd0b869..d2f888c 100644 --- a/include/xo/reflectutil/typeseq.hpp +++ b/include/xo/reflectutil/typeseq.hpp @@ -16,6 +16,10 @@ namespace xo { */ template struct typeseq_impl { + /** create sentinel value **/ + typeseq_impl() = default; + + /** typeseq with specific unique id **/ explicit typeseq_impl(int32_t s) : seqno_{s} {} /** Can't have this be constexpr. @@ -56,7 +60,7 @@ namespace xo { private: static int32_t s_next_id; - int32_t seqno_; + int32_t seqno_ = 0; }; template