Define nat in iterators to allow explicit instantiation of iterators.

This commit is contained in:
Ion Gaztañaga committed 2019-03-05 13:52:08 +01:00
1 parent da21340323
commit 8dfaee7434
2 files changed
+17 -6

No files matched your search

+7 -1
View File
@@ -96,7 +96,13 @@ class vec_iterator
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
private:
Pointer m_ptr;
class nat;
class nat
{
public:
Pointer get_ptr() const
{ return Pointer(); }
};
typedef typename dtl::if_c< IsConst
, vec_iterator<Pointer, false>
, nat>::type nonconst_iterator;