aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/eapi_phase.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-09 10:30:43 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-09 10:30:43 +0000
commit2aea4041781cca202655f5f092fabede80ebb13a (patch)
treee491ac0e60edd607cdd94900bdccf119ab50bd81 /paludis/repositories/e/eapi_phase.hh
parent34e79665cf7c11aae8c5d4aa219daab3a5aed343 (diff)
downloadpaludis-2aea4041781cca202655f5f092fabede80ebb13a.tar.gz
paludis-2aea4041781cca202655f5f092fabede80ebb13a.tar.xz
Don't use inline enums in typedefs. It confuses too many compilers
Diffstat (limited to 'paludis/repositories/e/eapi_phase.hh')
-rw-r--r--paludis/repositories/e/eapi_phase.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/paludis/repositories/e/eapi_phase.hh b/paludis/repositories/e/eapi_phase.hh
index 2ad74eada..011e8a8ed 100644
--- a/paludis/repositories/e/eapi_phase.hh
+++ b/paludis/repositories/e/eapi_phase.hh
@@ -53,7 +53,8 @@ namespace paludis
bool option(const std::string &) const;
bool option_contains(const std::string &, const std::string &) const;
- typedef WrappedForwardIterator<enum ConstIteratorTag { }, const std::string> ConstIterator;
+ struct ConstIteratorTag;
+ typedef WrappedForwardIterator<ConstIteratorTag, const std::string> ConstIterator;
ConstIterator begin_commands() const;
ConstIterator end_commands() const;
@@ -82,7 +83,8 @@ namespace paludis
///\name Information about the phases
///\{
- typedef WrappedForwardIterator<enum ConstIteratorTag { }, const EAPIPhase> ConstIterator;
+ struct ConstIteratorTag;
+ typedef WrappedForwardIterator<ConstIteratorTag, const EAPIPhase> ConstIterator;
ConstIterator begin_phases() const;
ConstIterator end_phases() const;