jarro2783/thenewcpp — pull request #13 by mavam (2014-04-18 01:28:26+00:00)
Title: Make apply_visitor work with rvalues.

This patch adds support for rvalues in apply_visitor. For example, consider a visitor that computes a value from a temporary:

auto x = apply_visitor(Visitor{}, Variant{42});

Because apply_visitor took an lvalue, the above statement would not compile.