Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • It works just like it would work with a non-variadic template sort_three_containers. That is, not too well. You need to pass not a function (template) but an object with a member function template that does the sorting, so that its instantiation happens at every recursive call to sort_containers. Commented Jun 2, 2013 at 2:51
  • With a non-variadic template I can do the following: ideone.com/jBg5yT, although I guess this example wouldn't extend to sort_three_containers Commented Jun 2, 2013 at 2:56