mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use cref instead of ref.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user