void boo() (in auto ref MyStruct s) { ... }

this will accept both lvalues and rvalues, and will avoid copying if it can.

Reply via email to