I'm playing with C++0x features introduced in GCC 4.4 for a while. I found interesting behavior (maybe bug?). I'd like to know your opinio, before I decide to report a bug.
I declared class with private destructor and constructor. I want to use auto_ptr to handle this class objects, so I had to declare auto_ptr class as a friend: