diff --git a/example/node.hpp b/example/node.hpp index 4e80d96..c3ed315 100755 --- a/example/node.hpp +++ b/example/node.hpp @@ -10,7 +10,7 @@ struct node_base { - node_base() : m_next(0) {} + node_base() : m_next(0) {} virtual ~node_base() { @@ -34,7 +34,7 @@ struct node_base } private: - node_base* m_next; + node_base* m_next; }; inline std::ostream& operator<<(std::ostream& s, node_base const& n) diff --git a/example/node_iterator1.hpp b/example/node_iterator1.hpp index 1188c7c..5e068b4 100755 --- a/example/node_iterator1.hpp +++ b/example/node_iterator1.hpp @@ -15,24 +15,24 @@ class node_iterator > { public: - node_iterator() + node_iterator() : m_node(0) {} - explicit node_iterator(node_base* p) + explicit node_iterator(node_base* p) : m_node(p) - {} + {} private: - friend class boost::iterator_core_access; + friend class boost::iterator_core_access; - void increment() + void increment() { m_node = m_node->next(); } - bool equal(node_iterator const& other) const + bool equal(node_iterator const& other) const { return this->m_node == other.m_node; } - node_base& dereference() const + node_base& dereference() const { return *m_node; } node_base* m_node; diff --git a/test/concept_tests.cpp b/test/concept_tests.cpp index dd99600..d39c947 100644 --- a/test/concept_tests.cpp +++ b/test/concept_tests.cpp @@ -89,7 +89,7 @@ main() boost_concepts::RandomAccessTraversalConcept >(); boost::function_requires< - boost_concepts::InteroperableIteratorConcept >(); + boost_concepts::InteroperableIteratorConcept >(); return 0; } diff --git a/test/indirect_iterator_member_types.cpp b/test/indirect_iterator_member_types.cpp index b4013ad..a5c6b1e 100644 --- a/test/indirect_iterator_member_types.cpp +++ b/test/indirect_iterator_member_types.cpp @@ -43,9 +43,9 @@ int main() STATIC_ASSERT_SAME(Iter::difference_type, std::ptrdiff_t); BOOST_STATIC_ASSERT((boost::is_convertible::value)); + std::random_access_iterator_tag>::value)); BOOST_STATIC_ASSERT((boost::is_convertible::type, - boost::random_access_traversal_tag>::value)); + boost::random_access_traversal_tag>::value)); } { typedef boost::indirect_iterator Iter; @@ -74,9 +74,9 @@ int main() STATIC_ASSERT_SAME(Iter::difference_type, std::ptrdiff_t); BOOST_STATIC_ASSERT((boost::is_convertible::value)); + std::random_access_iterator_tag>::value)); BOOST_STATIC_ASSERT((boost::is_convertible::type, - boost::random_access_traversal_tag>::value)); + boost::random_access_traversal_tag>::value)); } { typedef boost::indirect_iterator Iter;