Default Parameters with TArrays.
Here is my function declaration:
Intelisense says it's fine but on compile I get: C++ Default parameter not parsed: ScreensToClose "TArray()"
I've tried using the parameter as a reference but with the same result. I've seen some code that passes a TArray of AActor* with a default parameter just fine.
asked Aug 28 '15 at 06:42 PM in C++ Programming
You can use the
You can make multiple parameters have default values by putting multiple parameter names in the
Do you use UFUNCTION here? Because this looks like UHT, not compiler error, it don't know how to translate this to reflection system which is more limited then of what C++ can do. You would need to remove UFUNCTION() to do this.
Follow this question
Once you sign in you will be able to subscribe for any updates here