Fix bug that jon discovered that affects attempting to return a reference to an object that shares a memory location with a containing object but has a different type.
This commit is contained in:
@@ -52,6 +52,18 @@ namespace dispatchkit
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Used internally for handling a return value from a Proxy_Function call
|
||||
*/
|
||||
template<typename Ret>
|
||||
struct Handle_Return<Ret *>
|
||||
{
|
||||
Boxed_Value operator()(const boost::function<Ret *()> &f)
|
||||
{
|
||||
return Boxed_Value(boost::ref(*f()));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Used internally for handling a return value from a Proxy_Function call
|
||||
*/
|
||||
|
Reference in New Issue
Block a user