C++ Logo

std-proposals

Advanced search

Re: Make class template parameters available externally

From: Jake Arkinstall <jake.arkinstall_at_[hidden]>
Date: Wed, 30 Oct 2019 21:20:18 +0000
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;

Received on 2019-10-30 16:22:43