You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for finding out. Anyway, don't use those two methods (use those with directly shared marshaller pointer and destructor) - these are provided only for compatibility with previous version which had serious problems with ABI compatibility.
Two overloaded getCache() have bug.
----------------- BUGGY FUNCTION ----------------------
HR_SHARED_PTR<Marshaller > km, HR_SHARED_PTR<Marshaller > vm,
bool forceReturnValue = false)
HR_SHARED_PTR<Marshaller > km, HR_SHARED_PTR<Marshaller > vm,
const std::string& name, bool forceReturnValue = false)
----------------- BUG LINE ----------------------
rcache.valueMarshallerPtr.reset(new portable::counted_wrapper<HR_SHARED_PTR<Marshaller > >(vm), &genericDelete);
Ths line sets user-given marshaller function of VALUE.
And type of VALUE is template parameter "V"
But, key type "K" is used instead of "V".
----------------- FIX ----------------------
"K" ---> "V"
rcache.valueMarshallerPtr.reset(new portable::counted_wrapper<HR_SHARED_PTR<Marshaller > >(vm), &genericDelete);
The text was updated successfully, but these errors were encountered: