Tip about typedef for beginners

In C++ using aliases and the old typedef aliases are identical and equivalent. I feel this topic is important because beginners could see this code used in stack overflow while googling.

The new C++ 11 stuff won’t compile in older compilers. This likely won’t be an issue for any of you new coders out there in this tutorial. However, it should be stated that if you ever come across older code, you may see something like typedef std::string FText as an alias. This is the old way to do aliases. Don’t be confused by this :stuck_out_tongue:

Just know if you ever see some code and you see a typedef like that, that it is like the using alias he uses in the video.


Privacy & Terms