From 955752c8bc9ef57d881af77d147caf49b7a40b1f Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 24 Jun 2012 05:33:32 -0700 Subject: [PATCH] Bugfix. --- src/TaggedCache.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/TaggedCache.h b/src/TaggedCache.h index 8c84a34654..f07a80d138 100644 --- a/src/TaggedCache.h +++ b/src/TaggedCache.h @@ -213,9 +213,8 @@ boost::shared_ptr TaggedCache::fetch(const key_type& key) template bool TaggedCache::store(const key_type& key, const c_Data& data) { - if (!canonicalize(key, boost::shared_ptr(data))) - return false; - return true; + boost::shared_ptr d = boost::make_shared(boost::ref(data)); + return canonicalize(key, d); } template