Wednesday, February 16, 2011

Visual Studio -- notable bugs from the core

verified in (2010 express edition)
  • std::auto_ptr's reset() method lacks NULL checks
  • std::map lower bound does not give correct results

not yet verified in (2010 express)
  • _com_ptr' Release() method is public and does not assign NULL to the pointer, but the destructor calls it anyhow. A possibility of multiple calls to Release() could lead to some unexpected behavior.