I have worked directly with 6 male bosses and years after I've worked with even the last one we still exchange text messages on our birthdays(I mean the 6 of them) and two were present at my wedding(In short, a lot depends on you, I mean your self esteem, quality of job and general dispostion).
I used to think female bosses were just bad until I worked with 2 fantastic ones respectively. We were just like sisters and they are so fond of me. However, there was this one 'bad egg' that hated me with passion. Not only me, she was like that to all her female subs. Oh, she was a pain in the neck of all

. So much superiority air as if someone was contesting with her for her office.
May I say it's an individual rather than gender thing. Perhaps it has to do with their own experience with their own bosses too. They might want u to pass through the learning experience they also went through.
But let's remove womanising, I'll gladly work with a male boss, any day.