On Monday, 29 July 2013 at 14:53:10 UTC, monarch_dodra wrote:
A simple "Group" struct will solve the problem without a second thought:

struct Group(Args...)
{
    alias Ungroup = Args;
}

That is actually a TypeTuple that does not auto-expand. May be even worth defining it as "alias Ungroup = TypeTuple!(Args)" to be more self-documenting at cost of some redundancy.

Also it does not need to be a struct, templates are not mandatory eponymous.

I think it is best solution for topic starter problem in terms of ROI and worth inclusion into Phobos.

Reply via email to