I can\'t understand why does the following code produce memory leaks (I am using boost::shared_ptr with static class instance). Could someone help me?
boost::shared_ptr
Most likely the leak is detected before the global objects get destroyed and shared_ptr has a chance to release the object, so it's likely a false leak.
shared_ptr