How to pass noncopyable variadic arguments with ref?

user1234 user1234 at 12.de
Thu Oct 20 16:38:13 UTC 2022


On Thursday, 20 October 2022 at 16:34:34 UTC, user1234 wrote:
> On Thursday, 20 October 2022 at 14:03:10 UTC, tchaloupka wrote:
>> Hi,
>> I've found strange behavior where:
>> [...]
>> Shouldn't it at least protest that objects can't be passed to 
>> the function as they aren't copyable?
>
> it's clearly a compiler bug to me. Something is not checked 
> when the call is verified.

however (forgot to say) this form of variadic was proposed for 
deprecation.
So maybe the bug is more an argument to drop them.


More information about the Digitalmars-d-learn mailing list