This is codes snippet from our codes

void testSmartAssign()
{
  boost::shared_ptr<int> A;
  std::auto_ptr<int> B(new int(9));
  A = B;
}

Is this kind of assignment well defined?

Thanks