aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/eclass_mtimes.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-26 13:59:04 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-26 13:59:04 +0000
commit118de550d2dc5508ff4446bdf7f2ddf7b497b9ba (patch)
tree5ced2de062474cb8e6537e68d71cbc7c5a80e802 /paludis/repositories/e/eclass_mtimes.cc
parentf76a3a0a7b38b5a3652a9e9bcb13942483f7c53a (diff)
downloadpaludis-118de550d2dc5508ff4446bdf7f2ddf7b497b9ba.tar.gz
paludis-118de550d2dc5508ff4446bdf7f2ddf7b497b9ba.tar.xz
paludis::tr1:: is dead. We no longer support compilers that don't do tr1 (that means you, gcc-3).
Diffstat (limited to 'paludis/repositories/e/eclass_mtimes.cc')
-rw-r--r--paludis/repositories/e/eclass_mtimes.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/paludis/repositories/e/eclass_mtimes.cc b/paludis/repositories/e/eclass_mtimes.cc
index 40303c247..428dc0b02 100644
--- a/paludis/repositories/e/eclass_mtimes.cc
+++ b/paludis/repositories/e/eclass_mtimes.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006, 2007 Ciaran McCreesh
+ * Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -18,12 +18,13 @@
*/
#include "eclass_mtimes.hh"
-#include <paludis/hashed_containers.hh>
#include <paludis/util/private_implementation_pattern-impl.hh>
#include <paludis/util/sequence.hh>
#include <paludis/util/fs_entry.hh>
#include <paludis/util/mutex.hh>
#include <paludis/util/wrapped_forward_iterator.hh>
+#include <paludis/util/hashes.hh>
+#include <tr1/unordered_map>
using namespace paludis;
@@ -32,18 +33,18 @@ namespace paludis
template<>
struct Implementation<EclassMtimes>
{
- tr1::shared_ptr<const FSEntrySequence> eclass_dirs;
+ std::tr1::shared_ptr<const FSEntrySequence> eclass_dirs;
mutable Mutex mutex;
- mutable MakeHashedMap<std::string, time_t>::Type eclass_mtimes;
+ mutable std::tr1::unordered_map<std::string, time_t, Hash<std::string> > eclass_mtimes;
- Implementation(tr1::shared_ptr<const FSEntrySequence> d) :
+ Implementation(std::tr1::shared_ptr<const FSEntrySequence> d) :
eclass_dirs(d)
{
}
};
}
-EclassMtimes::EclassMtimes(tr1::shared_ptr<const FSEntrySequence> d) :
+EclassMtimes::EclassMtimes(std::tr1::shared_ptr<const FSEntrySequence> d) :
PrivateImplementationPattern<EclassMtimes>(new Implementation<EclassMtimes>(d))
{
}
@@ -57,7 +58,7 @@ EclassMtimes::mtime(const std::string & e) const
{
Lock l(_imp->mutex);
- MakeHashedMap<std::string, time_t>::Type::const_iterator i(_imp->eclass_mtimes.find(e));
+ std::tr1::unordered_map<std::string, time_t, Hash<std::string> >::const_iterator i(_imp->eclass_mtimes.find(e));
if (i != _imp->eclass_mtimes.end())
return i->second;