4.8 ParseIntoArray error

I tried to open my project with 4.8 from the launcher and a couple of errors pop up. All of them seem to refer to the parseintoarray-function:

 : error C2664: 'int32 FString::ParseIntoArray(TArray<FString,FDefaultAllocator> &,const TCHAR **,int32,bool) const' : Konvertierung von Argument 1 von 'TArray<FString,FDefaultAllocator> *' in 'TArray<FString,FDefaultAllocator> &' nicht m?glich ("Conversion of argument 1 from 'TArray<FString,FDefaultAllocator> *' to 'TArray<FString,FDefaultAllocator> &' not possible")

I hit the “open project in visual studio”-button and tried to complie by typing F5 and the following error pops up:

46039-error.jpg

Any suggestions?

I have the same problem with ParseIntoArray, this is my code.

FKeyData ABetterPlayerController::TextToKeyData(const FText text)
{
    FKeyData keyData;
    TArray<FString> tempTextChunks;
    TArray<FName> keys = TArray<FName>();

    text.ToString().ParseIntoArray(&tempTextChunks, TEXT("-"), false);

I hope there is a fix soon :frowning: .

See ya!

Hello, Braindrain85

I am sorry to hear about your issue.

Please note that the first parameter’s type of ParseIntoArray function was changed to reference in 4.8:

int32 FString::ParseIntoArray( TArray<FString>& OutArray, const TCHAR* pchDelim, bool InCullEmpty ) const;

While in 4.7, the function was declared like this:

int32 FString::ParseIntoArray( TArray<FString>* InArray, const TCHAR* pchDelim, bool InCullEmpty ) const;

In the mentioned code, ampersand should be removed to make it work properly:

text.ToString().ParseIntoArray(tempTextChunks, TEXT("-"), false);

Hope this helped!

Have a great day!

That did the trick for me. Thanks a bunch, !