> You can do: > > auto x = X(3); > > and x will be put on the stack. I didn't know that shortcut.. thanks! Now it looks much better and it's acceptable for me, but c++ form is still shorter and more elegant (of course it's disputable).