Commit b453aabb authored by neverlord's avatar neverlord

fixed requirement

parent 0cf245c8
...@@ -68,7 +68,7 @@ class decorated_tuple : public abstract_tuple ...@@ -68,7 +68,7 @@ class decorated_tuple : public abstract_tuple
: m_decorated(d), m_mappings(v) : m_decorated(d), m_mappings(v)
{ {
CPPA_REQUIRE(v.size() == sizeof...(ElementTypes)); CPPA_REQUIRE(v.size() == sizeof...(ElementTypes));
CPPA_REQUIRE(std::max_element(v.begin(), v.end()) < m_decorated->size()); CPPA_REQUIRE(v.empty() || *(std::max_element(v.begin(), v.end())) < m_decorated->size());
} }
virtual void* mutable_at(size_t pos) virtual void* mutable_at(size_t pos)
......
...@@ -75,6 +75,11 @@ class fixed_vector ...@@ -75,6 +75,11 @@ class fixed_vector
m_size = 0; m_size = 0;
} }
inline bool empty() const
{
return m_size == 0;
}
inline bool full() const inline bool full() const
{ {
return m_size == MaxSize; return m_size == MaxSize;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment