[algorithms][detail] make sure we are not going to get an unused
variable warning (on MSVC)