oatpp::Any. Fix object wrapper staticCast for Any.

This commit is contained in:
lganzzzo 2020-05-29 02:30:50 +03:00
parent 92625b1db0
commit e9ee65cb97
2 changed files with 3 additions and 3 deletions

View File

@ -36,8 +36,8 @@ Any::Any()
Any::Any(std::nullptr_t) : Any() {}
Any::Any(const std::shared_ptr<base::Countable>& ptr, const Type* const type)
: ObjectWrapper(std::make_shared<AnyHandle>(ptr, type), __class::Any::getType())
Any::Any(const std::shared_ptr<AnyHandle>& handle, const Type* const type)
: ObjectWrapper(handle, __class::Any::getType())
{}
Any::Any(const Any& other)

View File

@ -97,7 +97,7 @@ public:
*/
Any(Any&& other);
Any(const std::shared_ptr<base::Countable>& ptr, const Type* const type);
Any(const std::shared_ptr<AnyHandle>& handle, const Type* const type);
/**
* Constructor.