Open davidbrochart opened 3 years ago
Oh, I guess simply:
void displayName(FirstName const& theFirstName = "James", LastName const& theLastName = LastName("Bond"));
Actually default values would be interesting when combined with out of order arguments (at the end of this blog post), so that we could write:
displayName(firstName = "John");
displayName(lastName = "Doe");
But I guess this would be very hard to do?
Is it possible to write something like this?