I’m trying to make a BlueprintCallable function in c++ with an actor component and a UENUM as arguments.
.h
UFUNCTION(BlueprintCallable)
	/**
	* This function is to be used at runtime to send the most recent frame data to the neural network.
	* @param neuralNetwork - Reference to the neural network to send the data to
	* @param netUsage - If it is being used to test or train the network
	*/
	void SendDataToNetwork(UNeuralNetwork &neuralNetwork, NetworkUse netUsage);
.cpp
void ULeapDataCollector::SendDataToNetwork(UNeuralNetwork &neuralNetwork, NetworkUse netUsage)
{
	// Switches the use of the function based on what is needed from it
	switch (netUsage) {
	case NetworkUse::Train:
		// Network is being trained by this data
		neuralNetwork.TrainIndex(this->trainingData.Last().data, this->trainingData.Last().gestureIndex);
		break;
	case NetworkUse::Runtime:
		// Network is being tested by this data or being used at runtime
		neuralNetwork.FeedForward(this->trainingData.Last().data);
		break;
	}
}
It keeps giving me this error message: Missing '*' in Expected a pointer type
No idea what is going wrong so any help would be useful