lmi
[Top][All Lists]
Advanced

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

Re: [lmi] Switch to using C++11 uniform initialization in the ctor initi


From: Greg Chicares
Subject: Re: [lmi] Switch to using C++11 uniform initialization in the ctor initializer lists?
Date: Tue, 28 Aug 2018 00:52:24 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 2018-08-27 23:17, Vadim Zeitlin wrote:
> On Mon, 27 Aug 2018 23:06:23 +0000 Greg Chicares <address@hidden> wrote:
[...]
> GC> - "cardinality" as the first argument of a two-argument vector::vector
> GC> call strongly suggests it's the C++98 ctor.
> 
>  Sorry, but how? I totally misread this as something else during the first
> pass.

Is there a synonym that would make it more clear? E.g.:

  :allowed_(number_of_enumerators_in_the_enumeration, true)

  :allowed_(size_of_the_vector_we_are_constructing, true)

Or is there some other way to signal that we're passing a size argument? E.g.:

  :allowed_((lmi::ssize_t)cardinality_of_the_enumeration, true)



reply via email to

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