Forward declare correction vector iterator

This commit is contained in:
Ion Gaztañaga
2017-12-20 13:12:47 +01:00
parent ecd85ce164
commit 3c6f4ea2ed

View File

@@ -65,17 +65,15 @@ struct are_elements_contiguous< ::boost::move_iterator<It> >
: are_elements_contiguous<It> : are_elements_contiguous<It>
{}; {};
} //namespace dtl {
///////////////////////// /////////////////////////
// predeclarations // predeclarations
///////////////////////// /////////////////////////
template<class Pointer> template <class Pointer, bool IsConst>
class vector_iterator; class vec_iterator;
template<class Pointer>
class vector_const_iterator;
} //namespace dtl {
} //namespace container { } //namespace container {
namespace interprocess { namespace interprocess {
@@ -93,14 +91,8 @@ namespace dtl {
//vector_[const_]iterator //vector_[const_]iterator
///////////////////////// /////////////////////////
template<class Pointer> template <class Pointer, bool IsConst>
struct are_elements_contiguous<boost::container::dtl::vector_iterator<Pointer> > struct are_elements_contiguous<boost::container::vec_iterator<Pointer, IsConst> >
{
static const bool value = true;
};
template<class Pointer>
struct are_elements_contiguous<boost::container::dtl::vector_const_iterator<Pointer> >
{ {
static const bool value = true; static const bool value = true;
}; };