lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] [lmi-commits] master updated (b03a344 -> f335cd1)


From: Vadim Zeitlin
Subject: Re: [lmi] [lmi-commits] master updated (b03a344 -> f335cd1)
Date: Sat, 14 Nov 2020 15:39:28 +0100

On Sat, 14 Nov 2020 02:55:52 +0000 Greg Chicares <gchicares@sbcglobal.net> 
wrote:

[...scoped enums for lingo discussion snipped...]

 I'll try to think more about it, but it doesn't seem useful to discuss
this right now, so I'll just answer one small question that is quick to put
to rest:

GC> > GC> commit 180c1d7d21ece4a1c971e881bb2e4e34481a6e10
GC> [...]
GC> > GC> +    static std::unordered_map<superior::lingo,std::string> 
enumerative_map
GC> > GC> +        {{superior::policy_form      , "UL32768-NY"}
GC> > GC> +        ,{superior::policy_form_KS_KY, "UL32768-X"}
GC> > GC> +        };
GC> > 
GC> >  This is a much more trivial comment, but it looks like this map ought to
GC> > be "const" (I don't think it can be made constexpr in C++17).
GC> 
GC> Thanks. Committed but not yet pushed.
GC> 
GC> Does your phrase "in C++17" suggest that it can be made constexpr
GC> in C++20?

 I've used "in C++17" because I wasn't sure if this wasn't addressed in
C++20, while I was pretty certain it didn't work in C++17. After checking
it just now, I can however confirm that this doesn't work in C++20 neither.
I do believe there are plans to address this in C++23, so let's return to
this question in a couple of years (or, IOW, hope springs eternal).

 Regards,
VZ

Attachment: pgpQfcvlScPsu.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]