• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//  (C) Copyright John Maddock 2001.
2//  Use, modification and distribution are subject to the
3//  Boost Software License, Version 1.0. (See accompanying file
4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6//  See http://www.boost.org/libs/config for most recent version.
7
8//  MACRO:         BOOST_MSVC_STD_ITERATOR
9//  TITLE:         microsoft's version of std::iterator
10//  DESCRIPTION:   Microsoft's broken version of std::iterator
11//                 is being used.
12
13#include <iterator>
14
15namespace boost_msvc_std_iterator{
16
17int test()
18{
19   typedef std::iterator<
20      std::random_access_iterator_tag,
21      int
22      > iterator_type_2;
23   typedef std::reverse_iterator<const char*, const char> r_it;
24
25   iterator_type_2::value_type v2 = 0;
26   iterator_type_2::iterator_category cat2;
27   //
28   // suppress some warnings:
29   //
30   (void)v2;
31   (void)cat2;
32
33   return 0;
34}
35
36}
37
38
39
40
41