[algorithms][distance] add a comment about the usage of boost::ignore_unused

Suggested by Barend.