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