lilypond-devel
[Top][All Lists]
Advanced

[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: Thu, 21 Jun 2018 15:17:37 +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 10:48, address@hidden wrote:
>> 
>> I think C++19(?) or so already states that returned classes
>> are to be considered initializers rather than temporaries.
>
> Perhaps this is what you have in mind: C+17 returns prvalues without
> creating temporaries; [1], first note.
>
> 1. https://en.cppreference.com/w/cpp/language/copy_elision

That looks like it, yes.  At any rate, it seems like reconsidering our
coding styles for return types now would be postmature.

-- 
David Kastrup



reply via email to

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