C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Make class template parameters available externally
From: Jake Arkinstall (jake.arkinstall_at_[hidden])
Date: 2019-10-30 16:20:18


On Wed, 30 Oct 2019, 20:49 Dmitry via Std-Proposals, <
std-proposals_at_[hidden]> wrote:

> Your feedback is appreciated.
>

Every so often, someone posts a proposal idea on here that is so simple and
elegant that I wonder why nobody has thought of it before.

Usually those threads descend into some historical or technical reasons why
it isn't feasible, but I hope this isn't one of those threads.

I love it.

I'm curious about parameter packs. This might allow for exposing them,
which we previously had to do by indirection:

template<typename... Elements>
struct Foo{

};

using bar = Foo<insert, types, here>;

std::tuple<bar::Elements...> baz;



STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups