What is the best practice for including aliases?

In this lesson, the using alias is handled in two different ways. For the FString alias, the definition is placed in the header file FBullCowGame.h, then is #included in the FBullCowGame.cpp file which allows the alias to import into our CheckGuessValidity function. For int32, the alias is explicitly stated at the top of each file.

So, my question is, which is best practice? I’m assuming that it would be best practice when using a handful of aliases, to explicitly state these alias definitions at the top of each cpp file, so if the header files were ever altered, it wouldn’t potentially mess up a load of code, but I couldn’t find any guidelines online.

Privacy & Terms