Quantcast
Viewing latest article 17
Browse Latest Browse All 23

C++11: Perfect forwarding

Consider this function template invoke that invokes the function/functor/lambda expression passed as argument passing it the two extra arguments given: Nice, it works as expected and the result is: 30 Hello world The problem with my implementation is that it only works with arguments passed as constant references, so if I would like to invoke […]Image may be NSFW.
Clik here to view.

Viewing latest article 17
Browse Latest Browse All 23

Trending Articles