Commit 48ce31cd authored by Dominik Charousset's avatar Dominik Charousset

maintenance

parent 064ea792
...@@ -50,7 +50,7 @@ class container_tuple_view : public abstract_tuple { ...@@ -50,7 +50,7 @@ class container_tuple_view : public abstract_tuple {
typedef typename Container::value_type value_type; typedef typename Container::value_type value_type;
container_tuple_view(Container* c, bool take_ownership = false) container_tuple_view(Container* c, bool take_ownership = false)
: super(tuple_impl_info::dynamically_typed), m_ptr(c) { : super(tuple_impl_info::dynamically_typed), m_ptr(c) {
CPPA_REQUIRE(c != nullptr); CPPA_REQUIRE(c != nullptr);
if (!take_ownership) m_ptr.get_deleter().disable(); if (!take_ownership) m_ptr.get_deleter().disable();
} }
...@@ -65,7 +65,7 @@ class container_tuple_view : public abstract_tuple { ...@@ -65,7 +65,7 @@ class container_tuple_view : public abstract_tuple {
const void* at(size_t pos) const { const void* at(size_t pos) const {
CPPA_REQUIRE(pos < size()); CPPA_REQUIRE(pos < size());
auto i = m_ptr->begin(); auto i = m_ptr->cbegin();
std::advance(i, pos); std::advance(i, pos);
return &(*i); return &(*i);
} }
......
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