lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master fd26a86 05/10: Expunge typedefs that are no l


From: Greg Chicares
Subject: [lmi-commits] [lmi] master fd26a86 05/10: Expunge typedefs that are no longer helpful
Date: Tue, 2 Aug 2016 12:35:20 +0000 (UTC)

branch: master
commit fd26a8639d48dd845b32ebdf5d1e8468e19bcecf
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Expunge typedefs that are no longer helpful
---
 cache_file_reads.hpp |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/cache_file_reads.hpp b/cache_file_reads.hpp
index 9c72bd9..4050d73 100644
--- a/cache_file_reads.hpp
+++ b/cache_file_reads.hpp
@@ -100,8 +100,7 @@ class file_cache
         std::time_t    write_time;
     };
 
-    typedef std::map<std::string,record> map_type;
-    map_type cache_;
+    std::map<std::string,record> cache_;
 };
 
 /// Mixin to cache parent instances constructed from files.
@@ -111,13 +110,12 @@ class file_cache
 template<typename T>
 class cache_file_reads
 {
-    typedef file_cache<T> cache_type;
-    using retrieved_type = typename cache_type::retrieved_type;
+    using retrieved_type = typename file_cache<T>::retrieved_type;
 
   public:
     static retrieved_type read_from_cache(std::string const& filename)
         {
-        return cache_type::instance().retrieve_or_reload(filename);
+        return file_cache<T>::instance().retrieve_or_reload(filename);
         }
 };
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]