Alexandr Druzhinin:

auto msg = receiveOnly!(
        typeof(request_id),
        typeof(zoom),
        typeof(x),
        typeof(y),
        typeof(path),
        typeof(url)
)();

Or may be I'm worrying about nonsense and better I'd start thinking about more useful things? :)

It's often a good idea to use typeof to keep the code more DRY and safer.

Another possible solution is to put the variables in some kind of tuple, take its types and use them with a trailing [] to pass them all to receiveOnly.

Bye,
bearophile

Reply via email to