~vcs-imports/aspell/main

« back to all changes in this revision

Viewing changes to common/enumeration.hpp

  • Committer: kevina
  • Date: 2011-07-07 07:59:03 UTC
  • Revision ID: kevina-20110707075903-u1lug1ggaw82yina
Remove hacks for now ancient compilers that have poor support for the
C++ standard, mainly VC6 and BCB5.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#ifndef __autil_enumeration__
14
14
#define __autil_enumeration__
15
15
 
16
 
#include "settings.h"
17
16
#include "clone_ptr.hpp"
18
17
 
 
18
// Microsoft VC6.0 does not allow typename except when directly
 
19
// declaring a template param.  The other supporte compilers (Borlands
 
20
// BCB5.5 and GNU C++) require or allow it anywhere in the template
 
21
// decl. The macro TYPENAME is defines to whatever works.
 
22
#ifdef _MSC_VER
 
23
#define TYPENAME
 
24
#else
 
25
#define TYPENAME typename
 
26
#endif
 
27
 
19
28
// An enumeration is an efficient way to iterate through elements much
20
29
// like a forward iterator.  The at_end method is a convince method
21
30
// as enumerations will return a null pointer or some other sort of