How should I modify it so that I can pass std::array
s, std::vector
s or even std::list
s and get them sorted as well?
If this is primarily opinion-based, then so is literally every single how-to question on the site. There are often many ways to do something, and all questions of this nature imply "best practices" somehow (this is why we have a voting system!), but that doesn't make that thing inherently opinion-based. That the OP hasn't shown what they've tried doesn't make it off-topic either.
Bounties protect questions from closure for a reason. The lack of an MCVE can easily be fixed either by the OP or by an editor depending on the circumstances. In this case, it looks like the code from the linked Code Review question could be carried over without having to go to the trouble of
- removing the bounty and notice,
- reimbursing the OP the bounty rep,
- closing the question,
- waiting for the issue to be fixed,
- reopening the question, and
- having the OP set the bounty again.
If no one will fix the issue, then the bounty will expire or auto-award as normal and once that happens you can vote to close it however you like. If the OP doesn't get a satisfactory answer because of this, too bad for them.
Moderators only close bountied questions that warrant immediate closure (and possibly deletion) for exceptional reasons, such as being blatantly off-topic so as to be unsalvageable (like the question you had flagged previously that's now deleted).