mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 13:08:08 +00:00
Fix const bug in getCppPtrFromC that was causing an infinite loop.
This commit is contained in:
parent
589a0393b4
commit
de13310b03
1 changed files with 1 additions and 1 deletions
|
|
@ -338,7 +338,7 @@ public:
|
|||
typename = typename std::enable_if<IsDefinedBaseCppObject<CppType>::value, CppType>::type
|
||||
>
|
||||
static inline std::shared_ptr<const CppType> getCppPtrFromC (const CType *cObject) {
|
||||
return getCppPtrFromC<CType, CppType>(const_cast<CType *>(cObject));
|
||||
return getCppPtrFromC<typename std::remove_const<CType>::type, CppType>(const_cast<CType *>(cObject));
|
||||
}
|
||||
|
||||
template<
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue