C++ Logo


Advanced search

Subject: Re: P2320 implementation
From: Peter Dimov (pdimov_at_[hidden])
Date: 2021-03-19 14:20:35

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.

SG7 list run by sg7-owner@lists.isocpp.org

Older Archives on Google Groups