A simple C++ example that demonstrates automatic type conversion between specific types. This example defines meters, kilometers and miles and demonstrates how to set up a single templated function that converts all the passed in units to meters prior to storing them in a vector.