diff --git a/src/cpp/ripple/TaggedCache.h b/src/cpp/ripple/TaggedCache.h index 1fbaae9ad..681457ac5 100644 --- a/src/cpp/ripple/TaggedCache.h +++ b/src/cpp/ripple/TaggedCache.h @@ -31,7 +31,7 @@ public: typedef boost::weak_ptr weak_data_ptr; typedef boost::shared_ptr data_ptr; - typedef std::pair cache_entry; + typedef std::pair cache_entry; typedef std::pair cache_pair; protected: @@ -157,7 +157,7 @@ template bool TaggedCache::touch } // In map but not cache, put in cache - mCache.insert(cache_pair(key, cache_entry(time(NULL), weak_data_ptr(cit->second.second)))); + mCache.insert(cache_pair(key, cache_entry(time(NULL), data_ptr(cit->second.second)))); return true; }