So I have this:
class TWpTaxQueryArray : public TWpNestedQueryArray<UWpTaxQueryEntry>
{
};
deriving from this:
template<class T>
class WORDPRESSCONTACT_API TWpNestedQueryArray
{
//GENERATED_BODY()
private:
TArray<T>* Entries = nullptr;
public:
TArray<T>* GetEntries()
{
return Entries;
}
virtual int32 GetEntriesCount() const
{
return Entries == nullptr ? 0 : Entries->Num();
}
Eventually I get to this:
UCLASS()
class WORDPRESSCONTACT_API UWpTaxQueryEntry : public UCMLData
{
GENERATED_BODY()
private:
TWpTaxQueryArray* QueriesArray = nullptr;
Now comes the problem… When I call QueriesArray->GetEntriesCount() intellisense sees it just fine and it throws me no errors… but when I build I am told that the method is not a part of TWpTaxQueryArray . Okaaayyyyy…
So I got desperate and I tried modifying the class like so:
class TWpTaxQueryArray : public TWpNestedQueryArray<UWpTaxQueryEntry>
{
public:
virtual int32 GetEntriesCount() const override
{
return Super::GetEntriesCount();
}
};
but now I am told that
'Super' is not a class or namespace
I don’t get it. I can’t open the project in Unreal because it doesn’t compile and it doesn’t compile because I can’t access parent public methods??? What the…?
Can someone please point out what I am doing wrong?