Use cref instead of ref.

This commit is contained in:
JoelKatz
2012-12-06 03:39:23 -08:00
parent e0a9520d9d
commit 6f5f51de8a

View File

@@ -244,7 +244,7 @@ boost::shared_ptr<c_Data> TaggedCache<c_Key, c_Data>::fetch(const key_type& key)
template<typename c_Key, typename c_Data>
bool TaggedCache<c_Key, c_Data>::store(const key_type& key, const c_Data& data)
{
boost::shared_ptr<c_Data> d = boost::make_shared<c_Data>(boost::ref(data));
boost::shared_ptr<c_Data> d = boost::make_shared<c_Data>(boost::cref(data));
return canonicalize(key, d);
}