Even though the function header is different, if the only difference is in a default value, the compiler will throw an error.
In the example above, because of default values, you could call the method with just one parameter. If you do that, C++ will not know which method to use, so it throws a compiler error.
Splitting a String
Let's walk through an example of how getline can be used to split a string into different pieces. This is a helpful algorithm that you will see again later in the course.
To do this, you will convert a string into an input stream. Just like the cin is an input stream, a string can be used as an input stream and used in the cin command.