UE4SharedPointer_Private::MakeSharedRef

Needed to work around an Android compiler bug - we need to construct a [TSharedRef](API\Runtime\Core\Templates\TSharedRef) from MakeShared without making MakeShared a friend in order to access the private constructor.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h

Include

#include "Templates/SharedPointer.h"

Syntax

namespace UE4SharedPointer_Private
{
    template<typename ObjectType, ESPMode Mode>
    TSharedRef< ObjectType, Mode > UE4SharedPointer_Private::MakeSharedRef
    (
        ObjectType * InObject,
        SharedPointerInternals::FReferenceControllerBase * InSharedReferenceCount
    )
}

Remarks

Needed to work around an Android compiler bug - we need to construct a TSharedRef from MakeShared without making MakeShared a friend in order to access the private constructor.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss