diff --git a/src/core/smallstack_type.hpp b/src/core/smallstack_type.hpp index 1a88f0df1a..3b26951453 100644 --- a/src/core/smallstack_type.hpp +++ b/src/core/smallstack_type.hpp @@ -113,13 +113,14 @@ struct SmallStackItem { * index types of the same length. * @tparam Titem Value type to be used. * @tparam Tindex Index type to use for the pool. - * @tparam Tinvalid Invalid item to keep at the bottom of each stack. + * @tparam Tinvalid_value Value to construct invalid item to keep at the bottom of each stack. * @tparam Tgrowth_step Growth step for pool. * @tparam Tmax_size Maximum size for pool. */ -template +template class SmallStack : public SmallStackItem { public: + static constexpr Titem Tinvalid{Tinvalid_value}; typedef SmallStackItem Item;