In this video, I take a simple look at operator overloading in C++, and implement a 2D vector type. I then turn this type into a template to accommodate different precision requirements.
Source: https://github.com/OneLoneCoder/Javidx9/blob/master/SimplyCode/OneLoneCoder_OperatorOverloading.cpp
https://discord.gg/WhwHUMV
Blog: http://www.onelonecoder.com
Twitter: @javidx9
Twitch: javidx9