What do you consider emotional cheating

When does having a friend of another gender cross the line into cheating?