From: Eugene Lazutkin (eugene_lazutkin_at_[hidden])
Date: 2003-07-20 10:41:28
"John Torjo" <john.lists_at_[hidden]> wrote in message
> > Using operator->() and operator*() you use "pointer value itself". It is
> > pretty rare situation when you need it directly and not as part of
> > abc->def() or *abc constructs. Example of c_str() is irrelevant --- you
> > do all string manipulations without c_str(). The former is needed to
> > interface legacy systems, which is not frequent case.
> Not quite. It's quite frequent to me, when I use STL strings on Win32 -
> calling UI functions like MessageBox, SetText, etc.
I hear you. I usually write a wrapper for such functions like SetText, which
accept strings, if I use them frequently in a project.
I don't use MessageBox frequently as part of user interface. But I use it
for debugging. Usually it is used as part of some error reporting object
(like assert facility), which, of course, takes strings.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk