Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-01-13 05:05:18


> > Therefore, it is easy to imagine, and experience actually proves
> > it, that even seasoned C++ programmers find it extremely disturbing that
> > both sp.Release() and sp->Release() compile flag-free, but do very
> different
> > things.
>
> In practice I have not found this to be a problem.

Many people did find this to be a problem. For what it's worth, for years
this has been a bug in a MSVC++ wizard-generated code for a Transaction
Server object. The code called sp->Release() instead of sp.Release(), which
caused mysterious crashes in some cases.

Andrei

---------------------------------
Check out THE C++ Seminar: 3 Days with 5 Experts
http://www.gotw.ca/cpp_seminar/


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