How to format dynamic string in c++
Since 4.20, the FString::Printf function does not accept non-literal format string, it will report error "The formatting string must now be a TCHAR string literal."
The similar comments can found in unrealstring.h But our game heavily depended on formating dynamic string. We config all the gossip scripts and description text in config file. When display the string, we read back them and replace the "%s", or "%d" to the final value, such as name of npc or items.
So, as FString::Printf support literal format strong now, is there more appropriate way to do this job now?
asked Dec 06 '18 at 10:16 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here