error C2668: 'FVector::FVector': ambiguous call to overloaded function
note: could be 'FVector::FVector(FVector &&)'
note: or 'FVector::FVector(const FVector &)'
note: or 'FVector::FVector(EForceInit)'
note: or 'FVector::FVector(FIntPoint)'
note: or 'FVector::FVector(FIntVector)'
note: or 'FVector::FVector(const FLinearColor &)'
note: or 'FVector::FVector(const FVector4 &)'
note: or 'FVector::FVector(float)'
note: while trying to match the argument list '(FPackedNormal)'
error C2668: 'FVector::FVector': ambiguous call to overloaded function
note: could be 'FVector::FVector(FVector &&)'
note: or 'FVector::FVector(const FVector &)'
note: or 'FVector::FVector(EForceInit)'
note: or 'FVector::FVector(FIntPoint)'
note: or 'FVector::FVector(FIntVector)'
note: or 'FVector::FVector(const FVector4 &)'
note: or 'FVector::FVector(float)'
note: while trying to match the argument list '(FPackedNormal)'
This was also not the case before in 4.11. So, it seems like the new equality overloads make it unsure whether to convert to FVector or FVector4?
in the header and Rando(MoreRando); in the constructor, I get the same error in 4.12.5 and 4.11.2 of “term does not evaluate to a function taking 1 arguments”. Can you provide the code you’re using to take advantage of FPackedNormal?
When I added the line FVector(PackedNorm); in my constructor I was able to compile successfully. Can you let me know if I missed anything in my setup as well as provide the exact error you’re getting? Are you getting this error in Visual Studio or the editor?If this is in the editor, what exactly are you doing to call the code?
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.
I tried adding the two lines from your previous comment into the header file / constructor / and BeginPlay() functions of an actor class. Compiling with the code in the header file gave syntax errors and the other two both returned “Unresolved External” errors. I also tried this code in a 4.11 project with the same result. If possible, could you provide a sample project where you are receiving errors on compile?