lmi
[Top][All Lists]
Advanced

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

Re: [lmi] Branch lmi-so


From: Greg Chicares
Subject: Re: [lmi] Branch lmi-so
Date: Mon, 28 Dec 2020 23:59:43 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

On 10/18/20 2:55 PM, Greg Chicares wrote:
> [...some github branch already applied...]
>> This branch generally moves "LMI_SO" to the left

A new question arises: if "inline" and "LMI_SO" compete for
leftmost position, which wins? I think it should be "LMI_SO":
  LMI_SO inline double foo() {return 3.14;} // This way.
  inline LMI_SO double foo() {return 3.14;} // No, not this way.

For completeness, I should ask whether "LMI_SO" should be
written to the left of "static" and "constexpr". I think the
answer will be that only "template<whatever>" and "class" can
take the leftmost position away from "LMI_SO". Thus:
  template<typename T> LMI_SO static constexpr inline foo<T>(T t) {...}


reply via email to

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