diff --git a/counting_iterator_example.cpp b/counting_iterator_example.cpp index b85188a..844fdff 100644 --- a/counting_iterator_example.cpp +++ b/counting_iterator_example.cpp @@ -12,22 +12,6 @@ #include #include -#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -namespace boost { namespace detail -{ - template <> - struct iterator_traits - : ptr_iter_traits - { - }; - - template <> - struct iterator_traits - : ptr_iter_traits - { - }; -}} -#endif int main(int, char*[]) { // Example of using counting_iterator_generator diff --git a/filter_iterator_example.cpp b/filter_iterator_example.cpp index c2c4693..af3ee6a 100644 --- a/filter_iterator_example.cpp +++ b/filter_iterator_example.cpp @@ -17,17 +17,6 @@ struct is_positive_number { bool operator()(int x) { return 0 < x; } }; -#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -namespace boost { namespace detail -{ - template <> - struct iterator_traits - : ptr_iter_traits - { - }; -}} -#endif - int main() { int numbers_[] = { 0, -1, 4, -3, 5, 8, -2 }; diff --git a/indirect_iterator_example.cpp b/indirect_iterator_example.cpp index d78f9f8..c5e97ec 100644 --- a/indirect_iterator_example.cpp +++ b/indirect_iterator_example.cpp @@ -11,41 +11,6 @@ #include #include -#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -namespace boost { namespace detail -{ - template <> - struct iterator_traits - : ptr_iter_traits - { - }; - - template <> - struct iterator_traits - : ptr_iter_traits - { - }; - - template <> - struct iterator_traits - : ptr_iter_traits - { - }; - - template <> - struct iterator_traits - : ptr_iter_traits - { - }; - - template <> - struct iterator_traits - : ptr_iter_traits - { - }; -}} -#endif - int main(int, char*[]) { char characters[] = "abcdefg"; diff --git a/iterator_traits_test.cpp b/iterator_traits_test.cpp index 04c1299..bb51aba 100644 --- a/iterator_traits_test.cpp +++ b/iterator_traits_test.cpp @@ -147,9 +147,7 @@ template struct maybe_pointer_test : portable_tests -#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION , non_portable_tests -#endif { }; diff --git a/reverse_iterator_example.cpp b/reverse_iterator_example.cpp index e2a8664..d17c4af 100644 --- a/reverse_iterator_example.cpp +++ b/reverse_iterator_example.cpp @@ -9,16 +9,7 @@ #include #include -#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -namespace boost { namespace detail -{ - template <> - struct iterator_traits - : ptr_iter_traits - { - }; -}} -#endif +//boost::detail::iterator_traits int main(int, char*[]) { char letters_[] = "hello world!";