Trying to get my head around strings in unreal, and came across this code
std::string someString = "Hello!"; FString layerName(someString .c_str()); UE_LOG(LogTemp, Warning, TEXT("%s"), *layerName);
layerName is not a pointer, its an FString object. So my question is, what do you get when you dereference non pointer object.
I have never seen this befor, except in CSharp where alll objects are treated as pointers. In C++ class objects are not pointers.
So please educate me on this use case of dereference operator thats new to me.
Cause its dereference non pointer variable