lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 469307a 03/10: Use 'auto' for iterator type


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 469307a 03/10: Use 'auto' for iterator type
Date: Tue, 2 Aug 2016 12:35:19 +0000 (UTC)

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

    Use 'auto' for iterator type
---
 cache_file_reads.hpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cache_file_reads.hpp b/cache_file_reads.hpp
index 6bcc064..ac9696e 100644
--- a/cache_file_reads.hpp
+++ b/cache_file_reads.hpp
@@ -68,7 +68,7 @@ class file_cache
         // Throws if !exists(filename).
         std::time_t const write_time = fs::last_write_time(filename);
 
-        typename map_type::iterator i = cache_.lower_bound(filename);
+        auto i = cache_.lower_bound(filename);
         if
             (  cache_.end() != i
             && filename     == i->first



reply via email to

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