[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add and use a Transform data type (issue 344970043 by address@hidden
From: |
David Kastrup |
Subject: |
Re: Add and use a Transform data type (issue 344970043 by address@hidden) |
Date: |
Fri, 22 Jun 2018 11:09:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Hans Åberg <address@hidden> writes:
>> On 21 Jun 2018, at 00:30, address@hidden wrote:
>
>> Maybe a function would help:
>>
>> Transform make_transform(const Transform *t)
>> {
>> return t ? Transform (*t) : Transform ();
>> }
>>
>> You could also do it as a constructor, if you prefer its syntax and
>> don't mind implementing yet another one:
>>
>> explicit Transform(const Transform *t) ...
>
> One can also use a tag type argument in the constructor:
> struct make_t {};
> constexpr make_t make{};
What would that be good for?
--
David Kastrup
Re: Add and use a Transform data type (issue 344970043 by address@hidden), dak, 2018/06/21
Re: Add and use a Transform data type (issue 344970043 by address@hidden), dak, 2018/06/21
Re: Add and use a Transform data type (issue 344970043 by address@hidden), nine . fierce . ballads, 2018/06/21