mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-22 23:36:46 +08:00
...
This commit is contained in:
@@ -226,9 +226,9 @@ namespace vl
|
||||
}
|
||||
|
||||
template<typename T, typename U>
|
||||
Ptr<T> UnboxCollection(U& value)
|
||||
Ptr<T> UnboxCollection(const U& value)
|
||||
{
|
||||
auto boxedValue = reflection::description::BoxParameter<U>(value);
|
||||
auto boxedValue = reflection::description::BoxParameter<U>(const_cast<U&>(value));
|
||||
Ptr<T> result;
|
||||
reflection::description::UnboxParameter<Ptr<T>>(boxedValue, result);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user