mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2025-01-05 17:42:23 +08:00
oatpp::Any. Fix object wrapper staticCast for Any.
This commit is contained in:
parent
92625b1db0
commit
e9ee65cb97
@ -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)
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user