Friends with an ex?

What are your feeling on you or your SO being friends with an ex? Where do you draw the line?