AuthorizationSession::ScopedImpersonate::ScopedImpersonate(AuthorizationSession* authSession,
                                                           std::vector<UserName>* users,
                                                           std::vector<RoleName>* roles)
    : _authSession(*authSession), _users(*users), _roles(*roles) {
    swap();
}
AuthorizationSession::ScopedImpersonate::ScopedImpersonate(AuthorizationSession* authSession,
                                                           std::vector<UserName>* users,
                                                           std::vector<RoleName>* roles)
    : _authSession(*authSession), _users(*users), _roles(*roles) {
    swap();
}