This commit is contained in:
Zihan Chen
2018-07-06 01:38:22 -07:00
parent 9b508506c4
commit 59c256537a
+2 -2
View File
@@ -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;