C++ Logo


Advanced search

Re: [SG7] P2320 implementation

From: Peter Dimov <pdimov_at_[hidden]>
Date: Fri, 19 Mar 2021 21:20:35 +0200
Wyatt Childers wrote:
> Hi Peter,
> The expansion statement syntax was changed to "template for" (p1240 has
> not yet received this update) e.g.
> template for (constexpr auto x : m) {
> char const * name = meta::name_of(x);
> }
> However, there seems to be a bug
> <https://github.com/lock3/meta/issues/296> where the name_of call is not
> immediate.

Thank Wyatt. I actually arrived at this syntax eventually via random mutations,
but it didn't do me any good. :-)

> As for the range expansion, we do not currently have an implementation for
> this, and are considering changes.

OK, please keep us posted; I have some things I'd like to prototype, namely
whether or to what extent it's possible to implement


using 2320 facilities.

Received on 2021-03-19 14:20:39