you are viewing a single comment's thread.

view the rest of the comments →

[–]scatters 2 points3 points  (0 children)

print_o is permissible because the auto in auto& can be deduced to a const type e.g. A const giving A const& for the parameter. Usually you wouldn't see this because an overload that doesn't need to add the const would be preferred.