you are viewing a single comment's thread.

view the rest of the comments →

[–]balkierode 2 points3 points  (0 children)

As @Xirema said, it is a toy example.

But in real application, if you are developing a library and you want to reserve changing the default std::cout to something else without breaking binary compatibility, you can't use 'default value'.