Boost logo

Boost :

From: Wilka (wilka_at_[hidden])
Date: 2002-04-29 12:03:51


Using Boost 1.27.0 with MSVC, this compiles with no errors:

int main()
{
  boost::shared_ptr<int> p;
  int n;
  p = &n;

  return 0;
}

But I'm fairly sure that it used to require either a call to reset() or an
explicit temporary object. Is this an intention change? It seems a bit
strange if it is, especially with the constructor still being explicit
(which is why I assumed it's a bug).

- Wilka


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk