and only capture the value of role: pointer to member function is not needed.
mentioned in commit f0a945eb