Use perfect forwarding in functioncalls to avoid copies when passing by value