Set the map iterator to filter over undefined items

This commit is contained in:
Jesse Beder
2011-09-11 19:44:27 -05:00
parent c2a8a2c1f7
commit a308b73e8a
3 changed files with 29 additions and 21 deletions

View File

@@ -23,7 +23,7 @@ namespace YAML
iterator_base<V>,
node_iterator,
V,
std::bidirectional_iterator_tag>
std::forward_iterator_tag>
{
private:
template<typename> friend class iterator_base;
@@ -42,7 +42,6 @@ namespace YAML
friend class boost::iterator_core_access;
void increment() { this->base_reference() = boost::next(this->base()); }
void decrement() { this->base_reference() = boost::prior(this->base()); }
value_type dereference() const {
const typename base_type::value_type& v = *this->base();