OK, but seems the scoped_ptr template destructor instantiation is OK in this case. I don't why..