Create C++ nested classes

Hello guys I’m facing a little problem and I need help.

With the 4.8 we can define multiples classes in 1 header, but can we make nested classes?

I’ve tried multiples workaround without success.

For example I’ve this:

UCLASS()
class FPS4_8_API AActorTest : public AActor
{
	GENERATED_BODY()

private:

UCLASS(Abstract)
class UObjTemplate : public UObject
{
	GENERATED_BODY()

public:
	UObjTemplate();
	virtual void Hello() PURE_VIRTUAL(UObjTemplate::Hello, );
};

UCLASS()
class UObjConcret : public UObjTemplate
{
	GENERATED_BODY()

public:
	UObjConcret();
	void Hello();
};
	
public:	
	// Sets default values for this actor's properties
	AActorTest();

	// Called when the game starts or when spawned
	virtual void BeginPlay() override;
	
	// Called every frame
	virtual void Tick( float DeltaSeconds ) override;
};

but the code don’t compile.

Is there any workarounds ?

Is it possible to create nested classes ?

Thanks for help.

gamer08

Sorry, but that’s supported. Just declare it outside of the class

I suppose you mean it’s not supported? Is there any plan for support it in the future?

Thanks for help

gamer08

Yeah. Sorry about the typo. It’s not supported. No idea if we’ll ever add that as it’s not a pattern we use

Thanks for answer.