Why are our join() signatures taking const reference arguments?
(question, not criticism) The documentation here:
doesn't suggest constness is required, and my understanding of the
algorithm is that the argument will just get thrown away after it's
But all of our existing join() methods are taking const arguments,
which may just be due to commendable "I don't expect to change this so
let's have the compiler warn me otherwise" paranoia, but which makes
me suspicious that there may be a compatibility issue I don't know
about with older TBB verisons.
This is more than a theoretical question since the join() I'm
extending now would be more efficient if it could use "move" type
semantics with some of the argument's container contents.